fix: try adding double braces to the variable reference (#2041) #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Call Manifests Update Docker Tag | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
jobs: | |
update-docker-tag-in-manifests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set Docker Tag | |
run: echo "DOCKER_TAG=${GITHUB_SHA::7}" >> $GITHUB_ENV | |
env: | |
GITHUB_SHA: ${{ github.sha }} | |
- name: Trigger repository_dispatch | |
run: | | |
curl -L \ | |
-X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer ${{ secrets.MANIFESTS_WORKFLOW_TOKEN }}" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/cds-snc/notification-manifests/dispatches \ | |
-d '{"event_type":"update-docker-image","client_payload":{"component":"ADMIN","docker_tag":"${{ env.DOCKER_TAG }}"}}' |