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 b8c7200 commit 39c6cbaCopy full SHA for 39c6cba
.github/workflows/build.yaml
@@ -51,13 +51,12 @@ jobs:
51
- name: Build
52
run: pnpm run build
53
54
- - name: Get Project Version from Git Tag
+ - name: Get Commit SHA (short)
55
id: get_version
56
run: |
57
- # Use 'git describe' to find the closest tag, falling back to the commit SHA if no tag is found.
58
- # --tags includes all tags, --always ensures it always outputs something.
59
- VERSION=$(git describe --tags --always)
60
- echo "Project version is $VERSION"
+ # Get the short 8-character commit SHA
+ VERSION=$(git rev-parse --short=8 HEAD)
+ echo "Commit SHA is $VERSION"
61
echo "tag=$VERSION" >> $GITHUB_OUTPUT
62
63
- name: SonarQube Analysis (Branch)
0 commit comments