File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3434 aws-role-arn : ${{ vars.AWS_ROLE_ARN }}
3535 aws-region : us-east-1
3636
37- # ------ Legacy behavior ---
38- # put created tag in an env variable to be sent to the dispatch
39- - name : Set tag
40- if : ${{ steps.release.outputs.releases_created == 'true' }}
41- id : set-tag
42- run : |
43- REPOSITORY=$(echo '${{ github.repository }}')
44- TAG=$(echo '${{ steps.release.outputs.tag_name }}')
45- JSON=$(jq -c --null-input --arg repository "$REPOSITORY" --arg tag "$TAG" '{"repository": $repository, "tag": $tag}')
46- echo "json=$JSON" >> $GITHUB_OUTPUT
47-
48- # Trigger an 'on: repository_dispatch' workflow to run in graasp-deploy repository
49- - name : Push tag to Graasp Deploy (Staging)
50- if : ${{ steps.release.outputs.releases_created == 'true' }}
51- uses : peter-evans/repository-dispatch@v3
52- with :
53- token : ${{ secrets.REPO_ACCESS_TOKEN }}
54- repository : graasp/graasp-deploy
55- event-type : update-staging-version
56- client-payload : ${{ steps.set-tag.outputs.json }}
57-
5837 - name : Auto Tag
5938 uses : graasp/graasp-deploy/.github/actions/auto-tag-after-release@v1
6039 with :
You can’t perform that action at this time.
0 commit comments