Skip to content

Commit e2ed14e

Browse files
committed
sadjkqwsk
1 parent c2d1609 commit e2ed14e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,8 @@ jobs:
7676
shell: bash
7777
id: create-build-number
7878
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 }}
79+
git fetch --unshallow origin main
80+
echo $(git rev-list --count ${{ github.ref_name }} ^main)
8381
echo $(git rev-list --count ${{ github.ref_name }} ^main)
8482
echo "build-number=$(git rev-list --count ${{ github.ref_name }} ^main)" >> GITHUB_OUTPUT
8583
- name: 'Format version'

0 commit comments

Comments
 (0)