Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Hua Audio 2026-03-09 16:51:19 +01:00 committed by GitHub
parent 394d454ce1
commit 5fe352b899
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,11 @@ jobs:
VERSION=$TAG VERSION=$TAG
git config user.name "github-actions[bot]" git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com" git config user.email "github-actions[bot]@users.noreply.github.com"
if git rev-parse -q --verify "refs/tags/$TAG" >/dev/null; then
echo "Tag $TAG already exists, reusing existing tag"
else
git tag -a "$TAG" -m "Nightly build $VERSION" git tag -a "$TAG" -m "Nightly build $VERSION"
fi
git push origin "$TAG" git push origin "$TAG"
COMPARE_URL="https://github.com/${{ github.repository }}/commits/${TAG}" COMPARE_URL="https://github.com/${{ github.repository }}/commits/${TAG}"
@ -115,6 +119,7 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
contents: write contents: write
packages: write
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v6 uses: actions/checkout@v6