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