From 5fe352b899b7279e0b8e1018e00c57fc031b034e Mon Sep 17 00:00:00 2001 From: Hua Audio Date: Mon, 9 Mar 2026 16:51:19 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/nightly.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 18d4a15a3..0e37bf8f6 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -38,7 +38,11 @@ jobs: VERSION=$TAG git config user.name "github-actions[bot]" git config user.email "github-actions[bot]@users.noreply.github.com" - git tag -a "$TAG" -m "Nightly build $VERSION" + 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" + fi git push origin "$TAG" COMPARE_URL="https://github.com/${{ github.repository }}/commits/${TAG}" @@ -115,6 +119,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: write + packages: write steps: - name: Checkout uses: actions/checkout@v6