Skip to content

Commit

Permalink
More changes to action
Browse files Browse the repository at this point in the history
  • Loading branch information
hatboyzero committed Feb 7, 2024
1 parent 93ed19c commit 8afcb93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Fetching the Latest Release Tag number
id: releaseVersion
run: |
GIT_RELEASE=$(${{ github.ref_name || github.head_ref }} | cut -d'/' -f 3)
GIT_RELEASE=$(${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} | cut -d'/' -f 3)
echo "GIT_RELEASE=$GIT_RELEASE" >> $GITHUB_ENV
echo "release_tag: Latest Tag is : $GIT_RELEASE"
echo "release_tag=$GIT_RELEASE" >> $GITHUB_OUTPUT
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
- name: Fetching the Latest Release Tag number
id: releaseVersion
run: |
GIT_RELEASE=$(${{ github.ref_name || github.head_ref }} | cut -d'/' -f 3)
GIT_RELEASE=$(${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}} | cut -d'/' -f 3)
echo "GIT_RELEASE=$GIT_RELEASE" >> $GITHUB_ENV
echo "release_tag: Latest Tag is : $GIT_RELEASE"
echo "release_tag=$GIT_RELEASE" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 8afcb93

Please sign in to comment.