Skip to content

Commit cd1fbd4

Browse files
committed
axwedc
1 parent 3d89f09 commit cd1fbd4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ jobs:
7676
shell: bash
7777
id: create-build-number
7878
run: |
79-
git checkout -b main | git checkout main
80-
git checkout -b ${{ github.ref_name }} || git checkout ${{ github.ref_name }}
79+
git checkout -b main
80+
git switch ${{ github.ref_name }}
8181
echo $(git rev-list --count ${{ github.ref_name }} ^main)
8282
echo "build-number=$(git rev-list --count ${{ github.ref_name }} ^main)" >> GITHUB_OUTPUT
8383
- name: 'Format version'

0 commit comments

Comments
 (0)