File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 4949
5050 - name : Determine Tag Name Based on Branch
5151 id : determine_tag
52- run : echo "tagname=${{ github.ref_name == 'main' && 'latest' || github.ref_name == 'dev' && 'dev' || github.ref_name == 'demo' && 'demo' || github.head_ref || 'default' }}" >> $GITHUB_OUTPUT
52+ run : |
53+ if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
54+ echo "tagname=latest" >> $GITHUB_ENV
55+ elif [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
56+ echo "tagname=dev" >> $GITHUB_ENV
57+ elif [[ "${{ github.ref }}" == "refs/heads/demo" ]]; then
58+ echo "tagname=demo" >> $GITHUB_ENV
59+ else
60+ echo "tagnames=pullrequest-ignore" >> $GITHUB_ENV
61+ fi
5362
5463 - name : Build Docker Image and optionally push
5564 uses : docker/build-push-action@v6
You can’t perform that action at this time.
0 commit comments