Skip to content

Commit

Permalink
Change function to return current version tag, was
Browse files Browse the repository at this point in the history
picking up old version
  • Loading branch information
aidanheerdegen committed Oct 25, 2022
1 parent bd562c6 commit 42ec16b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/find-current-git-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ git clone --bare --single-branch --branch "$git_ref" "https://github.com/$github

cd bare_pr_preview || exit 1

action_version=$(git describe --tags --match "v*.*.*" \
|| git describe --tags \
|| git rev-parse HEAD)
action_version=$(git describe --tags || git rev-parse HEAD)

echo "$action_version"
exit 0

0 comments on commit 42ec16b

Please sign in to comment.