We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39c6cba commit 07074e7Copy full SHA for 07074e7
.github/workflows/build-pr.yml
@@ -54,13 +54,12 @@ jobs:
54
- name: Build
55
run: pnpm run build
56
57
- - name: Get Project Version from Git Tag
+ - name: Get Commit SHA (short)
58
id: get_version
59
run: |
60
- # Use 'git describe' to find the closest tag, falling back to the commit SHA if no tag is found.
61
- # --tags includes all tags, --always ensures it always outputs something.
62
- VERSION=$(git describe --tags --always)
63
- echo "Project version is $VERSION"
+ # Get the short 8-character commit SHA
+ VERSION=$(git rev-parse --short=8 HEAD)
+ echo "Commit SHA is $VERSION"
64
echo "tag=$VERSION" >> $GITHUB_OUTPUT
65
66
- name: SonarQube Analysis (Pull Request)
0 commit comments