We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85eb6d5 commit e845c2fCopy full SHA for e845c2f
1 file changed
.github/workflows/build.yml
@@ -76,8 +76,9 @@ jobs:
76
shell: bash
77
id: create-build-number
78
run: |
79
- echo $(git rev-list --count ${{ github.ref_name }}..main)
80
- echo "build-number=$(git rev-list --count ${{ github.ref_name }}..main)" >> GITHUB_OUTPUT
+ git checkout main
+ echo $(git rev-list --count ${{ github.ref_name }} ^main)
81
+ echo "build-number=$(git rev-list --count ${{ github.ref_name }} ^main)" >> GITHUB_OUTPUT
82
- name: 'Format version'
83
id: format-version
84
uses: ./.github/actions/format-version
0 commit comments