We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0dc2882 commit 8f928caCopy full SHA for 8f928ca
.github/workflows/build.yml
@@ -41,12 +41,13 @@ jobs:
41
GENERATE_DIST: ${{ env.DEFAULT_BRANCH == github.ref_name && '1' || '0' }}
42
43
- name: Publish Release
44
+ id: publish-release
45
if: ${{ env.DEFAULT_BRANCH == github.ref_name && github.event_name == 'push' && github.base_ref == '' }}
46
env:
47
GH_TOKEN: "${{ secrets.PAT }}"
48
runs: |
- COUNT=`gh release list | grep 'latest' | wc -l`
49
- if [ $COUNT 1 == '0' ];then gh release delete 'latest' --cleanup-tag -y; fi
+ COUNT=$(gh release list | grep 'latest' | wc -l)
50
+ if [ $COUNT != '0' ];then gh release delete 'latest' --cleanup-tag -y; fi
51
52
git tag "latest"
53
git push -f origin "latest"
0 commit comments