Skip to content

Commit 3bd9dbe

Browse files
committed
move to same job again
1 parent b88d920 commit 3bd9dbe

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

.github/workflows/release.yaml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -126,21 +126,6 @@ jobs:
126126
exit 1
127127
fi
128128
done
129-
authenticate-github:
130-
runs-on: ubuntu-latest
131-
environment: release
132-
needs: [build-static-binaries] # Has a TTL of 1h only
133-
outputs:
134-
access_token: ${{ steps.app-token.outputs.token }}
135-
steps:
136-
- uses: actions/create-github-app-token@v1
137-
id: app-token
138-
with:
139-
app-id: ${{ vars.APP_ID }}
140-
private-key: ${{ secrets.APP_PRIVATE_KEY }}
141-
owner: ${{ github.repository_owner }}
142-
repositories: |
143-
concordium-infra-images
144129
145130
build-static-binaries:
146131
needs: [validate-preconditions]
@@ -635,13 +620,21 @@ jobs:
635620
environment=${{ matrix.node.env }}
636621
notify-immutable-infrastructure:
637622
runs-on: ubuntu-latest
638-
needs: [ node-linux, validate-preconditions, authenticate-github ]
623+
needs: [ node-linux, validate-preconditions ]
639624
if: contains(fromJSON('["rc", "alpha"]'), needs.validate-preconditions.outputs.release_type)
640625
steps:
626+
- uses: actions/create-github-app-token@v1
627+
id: app-token
628+
with:
629+
app-id: ${{ vars.APP_ID }}
630+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
631+
owner: ${{ github.repository_owner }}
632+
repositories: |
633+
concordium-infra-images
641634
- name: Invoke immutable node release flow
642635
run: |
643636
curl -X POST --fail \
644-
-H "Authorization: Bearer ${{ needs.authenticate-github.outputs.access_token }}" \
637+
-H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \
645638
-H "Accept: application/vnd.github.v3+json" \
646639
https://api.github.com/repos/Concordium/concordium-infra-images/actions/workflows/release-node-images.yaml/dispatches \
647640
-d '{"ref":"main", "inputs":{"node_version": "${{ needs.validate-preconditions.outputs.version }}", "release_type": "${{ needs.validate-preconditions.outputs.release_type }}"}}'

0 commit comments

Comments
 (0)