diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d1f0394bc..9ddccd98c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -618,3 +618,21 @@ jobs: genesis_ref=main genesis_path=${{ matrix.node.genesis_path }} environment=${{ matrix.node.env }} + remote-git-changes: + runs-on: ubuntu-latest + needs: [ node-linux, validate-preconditions ] + if: contains(fromJSON('["rc", "alpha"]'), needs.validate-preconditions.outputs.release_type) + environment: release + steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.APP_ID }} + private-key: ${{ secrets.APP_PRIVATE_KEY }} + - name: Invoke immutable node release flow + run: | + curl -X POST \ + -H "Authorization: Bearer ${{ steps.app-token.outputs.token }}" \ + -H "Accept: application/vnd.github.v3+json" \ + https://api.github.com/repos/Concordium/concordium-infra-images/actions/workflows/release-node-images.yaml/dispatches \ + -d '{"ref":"main", "inputs":{"node_version": "${{ needs.validate-preconditions.outputs.version }}", "release_type": "${{ needs.validate-preconditions.outputs.release_type }}"}}'