diff --git a/diff-sha.sh b/diff-sha.sh index 5daf90c8..a8784a78 100644 --- a/diff-sha.sh +++ b/diff-sha.sh @@ -41,6 +41,7 @@ fi if [[ -z $GITHUB_BASE_REF ]]; then echo "Running on a push event..." TARGET_BRANCH=${GITHUB_REF/refs\/heads\//} && exit_status=$? || exit_status=$? + TARGET_BRANCH=${TARGET_BRANCH/refs\/tags\//} CURRENT_BRANCH=$TARGET_BRANCH && exit_status=$? || exit_status=$? echo "::debug::Getting HEAD SHA..."