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 c2d1609 commit e2ed14eCopy full SHA for e2ed14e
.github/workflows/build.yml
@@ -76,10 +76,8 @@ jobs:
76
shell: bash
77
id: create-build-number
78
run: |
79
- git fetch origin
80
- echo $(git rev-list --count origin/main ^origin/${{ github.ref_name }})
81
- git checkout -b main origin/main
82
- git switch ${{ github.ref_name }}
+ git fetch --unshallow origin main
+ echo $(git rev-list --count ${{ github.ref_name }} ^main)
83
echo $(git rev-list --count ${{ github.ref_name }} ^main)
84
echo "build-number=$(git rev-list --count ${{ github.ref_name }} ^main)" >> GITHUB_OUTPUT
85
- name: 'Format version'
0 commit comments