Skip to content

Commit 34eda45

Browse files
committed
fix(version-number): commit count
1 parent 092b423 commit 34eda45

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/run_build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
id: version
2727
shell: pwsh
2828
run: |
29-
$LATEST_TAG = git describe --tags --abbrev=0 # Get the latest tag name
30-
$COMMIT_COUNT = git rev-list --use-bitmap-index --count $(git rev-list --tags --no-walk --max-count=1)..HEAD # Count all commits since the last tag
31-
$NIXOS_WSL_VERSION = "$($LATEST_TAG -replace '(.+)\.(.+)\.(.+)\..+', '$1.$2.$3').${COMMIT_COUNT}" # Compose the NixOS-WSL version number
29+
$LATEST_TAG = git describe --tags --abbrev=0 # Get the latest tag name
30+
$COMMIT_COUNT = git rev-list --use-bitmap-index --count "$(git rev-list --tags --no-walk --max-count=1)..HEAD" # Count all commits since the last tag
31+
$NIXOS_WSL_VERSION = "$($LATEST_TAG -replace '(.+)\.(.+)\.(.+)\..+', '$1.$2.$3').${COMMIT_COUNT}" # Compose the NixOS-WSL version number
3232
echo "version=$NIXOS_WSL_VERSION" >> $env:GITHUB_OUTPUT
3333
3434
echo $NIXOS_WSL_VERSION > ./VERSION

0 commit comments

Comments
 (0)