File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments