mirror of
https://github.com/Hopiu/lychee.git
synced 2026-04-24 06:54:47 +00:00
fix nightly release bash script (#1224)
Signed-off-by: Keming <kemingy94@gmail.com>
This commit is contained in:
parent
7a4c601b07
commit
840bd90365
1 changed files with 6 additions and 1 deletions
7
.github/workflows/nightly.yml
vendored
7
.github/workflows/nightly.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue