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 b741a23 commit 074c3b6Copy full SHA for 074c3b6
.github/workflows/build.yml
@@ -78,10 +78,11 @@ jobs:
78
shell: bash
79
id: create-build-number
80
run: |
81
- git fetch --unshallow origin
+ git fetch --unshallow origin main
82
+ git fetch --unshallow origin ${{ github.ref_name }}
83
echo $(git rev-list HEAD --count --first-parent)
- echo $(git rev-list --count ${{ github.ref_name }} ^main)
84
- echo "build-number=$(git rev-list --count ${{ github.ref_name }} ^main)" >> GITHUB_OUTPUT
+ echo $(git rev-list --count origin/${{ github.ref_name }} ^origin/main)
85
+ echo "build-number=$(git rev-list --count origin/${{ github.ref_name }} ^origin/main)" >> GITHUB_OUTPUT
86
- name: 'Format version'
87
id: format-version
88
uses: ./.github/actions/format-version
0 commit comments