Skip to content

Commit e845c2f

Browse files
committed
xzvxvsd
1 parent 85eb6d5 commit e845c2f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,9 @@ jobs:
7676
shell: bash
7777
id: create-build-number
7878
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
79+
git checkout main
80+
echo $(git rev-list --count ${{ github.ref_name }} ^main)
81+
echo "build-number=$(git rev-list --count ${{ github.ref_name }} ^main)" >> GITHUB_OUTPUT
8182
- name: 'Format version'
8283
id: format-version
8384
uses: ./.github/actions/format-version

0 commit comments

Comments
 (0)