File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -50,14 +50,15 @@ jobs:
5050 - name : Determine Tag Name Based on Branch
5151 id : determine_tag
5252 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
53+ if [[ "${{ github.ref_name }}" == "main" ]]; then
54+ echo "tagname=latest" >> $GITHUB_OUTPUT
55+ elif [[ "${{ github.ref_name }}" == "dev" ]]; then
56+ echo "tagname=dev" >> $GITHUB_OUTPUT
57+ elif [[ "${{ github.ref_name }}" == "demo" ]]; then
58+ echo "tagname=demo" >> $GITHUB_OUTPUT
5959 else
60- echo "tagname=pullrequest-ignore" >> $GITHUB_ENV
60+ echo "tagname=default" >> $GITHUB_OUTPUT
61+
6162 fi
6263
6364 - name : Build Docker Image and optionally push
You can’t perform that action at this time.
0 commit comments