Skip to content

Commit

Permalink
fix: update ublue_update_version macro to match version with github t…
Browse files Browse the repository at this point in the history
…ag (#49)
  • Loading branch information
gerblesh authored Jul 16, 2023
2 parents 8a6453f + 60ad5fd commit f0bbc04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rpkg.macros
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function ublue_update_version {
if [ "$GITHUB_REF" = "" ]; then
if [ "$GITHUB_REF_NAME" = "" ]; then
echo "1.0.0+$(git rev-parse --short HEAD)"
else
awk '{print $NF}' FS='/v' <<<"$GITHUB_REF"
echo "$GITHUB_REF_NAME"
fi
}

0 comments on commit f0bbc04

Please sign in to comment.