File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -39,16 +39,15 @@ jobs:
3939 username : ${{ secrets.ACR_USERNAME }}
4040 password : ${{ secrets.ACR_PASSWORD }}
4141
42-
4342 - name : Set Docker image tag
4443 run : |
45- if [[ "${{ github.head. ref }}" == "main" ]]; then
44+ if [[ "${{ github.ref }}" == "refs/heads/ main" ]]; then
4645 echo "TAG=latest" >> $GITHUB_ENV
47- elif [[ "${{ github.head. ref }}" == "dev" ]]; then
46+ elif [[ "${{ github.ref }}" == "refs/heads/ dev" ]]; then
4847 echo "TAG=dev" >> $GITHUB_ENV
49- elif [[ "${{ github.head. ref }}" == "demo" ]]; then
48+ elif [[ "${{ github.ref }}" == "refs/heads/ demo" ]]; then
5049 echo "TAG=demo" >> $GITHUB_ENV
51- elif [[ "${{ github.head. ref }}" == "hotfix" ]]; then
50+ elif [[ "${{ github.ref }}" == "refs/heads/ hotfix" ]]; then
5251 echo "TAG=hotfix" >> $GITHUB_ENV
5352 else
5453 echo "TAG=pullrequest-ignore" >> $GITHUB_ENV
You can’t perform that action at this time.
0 commit comments