Skip to content

Commit

Permalink
Update method to retrieve tag from ref based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
netomi committed Dec 18, 2023
1 parent 83797de commit 59dfeed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/find-current-git-tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ git clone --bare "https://github.com/$github_repository" bare_pr_preview

cd bare_pr_preview || exit 1

action_version=$(git tag --points-at "$git_ref" "v*.*.*")
action_version=$(git describe --tags --match "v*.*.*" "$git_ref" || git describe --tags "$git_ref" || git rev-parse HEAD)

echo "$action_version"
exit 0

0 comments on commit 59dfeed

Please sign in to comment.