Skip to content

Commit 842a8e4

Browse files
committed
xvds
1 parent c477f3d commit 842a8e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ jobs:
5454
steps:
5555
- name: 'Checkout ${{ github.head_ref || github.ref }}'
5656
uses: actions/checkout@v5
57+
with:
58+
fetch-depth: 0 # Ensure the full git history is available for versioning
5759
- name: 'Setup .NET ${{ env.dotnet-sdk-version }}'
5860
uses: actions/setup-dotnet@v4
5961
with:
@@ -77,8 +79,6 @@ jobs:
7779
id: create-build-number
7880
run: |
7981
echo $(git rev-list HEAD --count --first-parent)
80-
echo $(git rev-list --count ${{ github.ref_name }} ^main)
81-
echo $(git rev-list --count ${{ github.ref_name }} ^main)
8282
echo "build-number=$(git rev-list --count ${{ github.ref_name }} ^main)" >> GITHUB_OUTPUT
8383
- name: 'Format version'
8484
id: format-version

0 commit comments

Comments
 (0)