Apply suggestion from @Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
parent
c946477d21
commit
7dac458c2f
1 changed files with 17 additions and 4 deletions
19
.github/workflows/nightly.yml
vendored
19
.github/workflows/nightly.yml
vendored
|
|
@ -105,7 +105,20 @@ jobs:
|
|||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
gh release create ${{ needs.generate-version.outputs.tag }} \
|
||||
--title "${{ needs.generate-version.outputs.version }}" \
|
||||
--notes "Nightly build for ${{ needs.generate-version.outputs.version }}" \
|
||||
TAG="${{ needs.generate-version.outputs.tag }}"
|
||||
TITLE="${{ needs.generate-version.outputs.version }}"
|
||||
NOTES="Nightly build for ${{ needs.generate-version.outputs.version }}"
|
||||
|
||||
if gh release view "$TAG" >/dev/null 2>&1; then
|
||||
echo "Release $TAG already exists, updating metadata and assets..."
|
||||
gh release edit "$TAG" \
|
||||
--title "$TITLE" \
|
||||
--notes "$NOTES"
|
||||
gh release upload "$TAG" build/* --clobber
|
||||
else
|
||||
echo "Creating new release $TAG..."
|
||||
gh release create "$TAG" \
|
||||
--title "$TITLE" \
|
||||
--notes "$NOTES" \
|
||||
build/*
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue