Skip to content

Commit

Permalink
Bring back extra commit count for master builds.
Browse files Browse the repository at this point in the history
Removing the “beta” annotation however, it’s long enough as it is.
  • Loading branch information
Lord-Kamina committed Jan 12, 2025
1 parent 4f81a00 commit afdbabd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ jobs:
echo "complete_version=${{github.ref_name}}" >> $GITHUB_OUTPUT
elif [[ ${{ github.ref_type }} == "branch" ]]; then
if [[ ${{ github.ref_name}} == "master" ]]; then
echo "complete_version=$LATEST_TAG_VERSION+git-${COMMIT_SHA}-beta" >> $GITHUB_OUTPUT
NUMCOMMITS=$(git describe --tags | sed "s|$(git describe --tags --abbrev=0)-||" | cut -d- -f1)
echo "complete_version=$LATEST_TAG_VERSION+${NUMCOMMITS}-git-${COMMIT_SHA}" >> $GITHUB_OUTPUT
else
echo "complete_version=$LATEST_TAG_VERSION+git-${COMMIT_SHA}-PR${{github.event.pull_request.number}}-alpha" >> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit afdbabd

Please sign in to comment.