We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c477f3d commit 842a8e4Copy full SHA for 842a8e4
1 file changed
.github/workflows/build.yml
@@ -54,6 +54,8 @@ jobs:
54
steps:
55
- name: 'Checkout ${{ github.head_ref || github.ref }}'
56
uses: actions/checkout@v5
57
+ with:
58
+ fetch-depth: 0 # Ensure the full git history is available for versioning
59
- name: 'Setup .NET ${{ env.dotnet-sdk-version }}'
60
uses: actions/setup-dotnet@v4
61
with:
@@ -77,8 +79,6 @@ jobs:
77
79
id: create-build-number
78
80
run: |
81
echo $(git rev-list HEAD --count --first-parent)
- echo $(git rev-list --count ${{ github.ref_name }} ^main)
82
echo "build-number=$(git rev-list --count ${{ github.ref_name }} ^main)" >> GITHUB_OUTPUT
83
- name: 'Format version'
84
id: format-version
0 commit comments