Skip to content

Commit

Permalink
fix nightly release bash script (#1224)
Browse files Browse the repository at this point in the history
Signed-off-by: Keming <[email protected]>
  • Loading branch information
kemingy authored Aug 17, 2023
1 parent 7a4c601 commit 840bd90
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,16 @@ jobs:
fetch-depth: 0
- if: ${{ github.event_name == 'workflow_dispatch' }}
run: |
gh release delete ${{ github.event.inputs.tag_name }} --yes --cleanup-tag || true
git tag -d ${{ github.event.inputs.tag_name }}
gh release create ${{ github.event.inputs.tag_name }} --title ${{ github.event.inputs.tag_name }} --generate-notes --prerelease
- if: ${{ github.event_name == 'schedule' }}
run: |
if [[ $(git diff nightly --name-only -B -M -C) ]]; then
if [[ -z $(git tag -l nightly) ]]; then
gh release create nightly --title nightly --generate-notes --prerelease
elif [[ $(git diff nightly --name-only -B -M -C) ]]; then
gh release delete nightly --yes --cleanup-tag || true
git tag -d nightly
gh release create nightly --title nightly --generate-notes --prerelease
fi

0 comments on commit 840bd90

Please sign in to comment.