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