File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3939 password_secret : ${{ matrix.password_secret }}
4040 app_name : ${{ matrix.app_name }}
4141 dockerfile : ${{ matrix.dockerfile }}
42- push : ${{ github.event_name == 'push' || github.base_ref == ' main' || github.base_ref == 'dev' || github.base_ref == 'demo' || github.base_ref == 'hotfix' }}
42+ push : ${{ github.ref_name == 'main' || github.ref_name == 'dev' || github.ref_name == 'demo' || github.ref_name == 'hotfix' }}
4343 secrets : inherit
Original file line number Diff line number Diff line change @@ -51,16 +51,14 @@ jobs:
5151 - name : Determine Tag Name Based on Branch
5252 id : determine_tag
5353 run : |
54- if [[ "${{ github.base_ref }}" == "main" ]]; then
54+ if [[ "${{ github.ref_name }}" == "main" ]]; then
5555 echo "tagname=latest" >> $GITHUB_OUTPUT
56- elif [[ "${{ github.base_ref }}" == "dev" ]]; then
56+ elif [[ "${{ github.ref_name }}" == "dev" ]]; then
5757 echo "tagname=dev" >> $GITHUB_OUTPUT
58- elif [[ "${{ github.base_ref }}" == "demo" ]]; then
58+ elif [[ "${{ github.ref_name }}" == "demo" ]]; then
5959 echo "tagname=demo" >> $GITHUB_OUTPUT
60- elif [[ "${{ github.base_ref }}" == "hotfix" ]]; then
60+ elif [[ "${{ github.ref_name }}" == "hotfix" ]]; then
6161 echo "tagname=hotfix" >> $GITHUB_OUTPUT
62- elif [[ "${{ github.base_ref }}" == "dependabotchanges" ]]; then
63- echo "tagname=dependabotchanges" >> $GITHUB_OUTPUT
6462 else
6563 echo "tagname=default" >> $GITHUB_OUTPUT
6664 fi
You can’t perform that action at this time.
0 commit comments