Skip to content

Commit

Permalink
echo GITHUB_HEAD_REF and change the way we set env.DOCKER_IMAGE_TAG
Browse files Browse the repository at this point in the history
  • Loading branch information
bquan0 committed Aug 21, 2023
1 parent 7d275a4 commit a1ff781
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/variablesTest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,11 @@ jobs:
run: |
echo ${{ env.DOCKER_IMAGE_TAG }}
echo ${{ github.event_name }}
echo ${{ github.HEAD_REF }}
- name: Check for DOCKER_IMAGE_TAG change
if: github.event_name == 'pull_request'
run: echo ":refs_heads_${GITHUB_HEAD_REF}-bk0" >> $env.DOCKER_IMAGE_TAG
run: $env.DOCKER_IMAGE_TAG = ":refs_heads_${GITHUB_HEAD_REF}-bk0" >>

- name: Echo DOCKER_IMAGE_TAG again
run: echo ${{ env.DOCKER_IMAGE_TAG }}
Expand Down

0 comments on commit a1ff781

Please sign in to comment.