From b00b6c04829ddc1e49849fb3243966de03783a6f Mon Sep 17 00:00:00 2001 From: Hua Audio Date: Sun, 8 Mar 2026 18:33:34 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .github/workflows/nightly.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 7b3464f32..d1e4a8805 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -24,8 +24,8 @@ jobs: - name: Generate version id: version run: | - DATE=$(date +%Y%m%d) - SHA=$(git rev-parse --short HEAD) + DATE=$(date -u +%Y%m%d) + SHA=$(git rev-parse --short=8 HEAD) BASE_VERSION=$(git describe --tags --match "v*" --exclude "*nightly*" --abbrev=0 2>/dev/null || true) if [ -z "$BASE_VERSION" ] || [ "$BASE_VERSION" = "v0.0.0" ]; then VERSION="nightly-${DATE}-${SHA}" @@ -109,7 +109,7 @@ jobs: release: name: Release runs-on: ubuntu-latest - needs: [generate-version, build] + needs: [generate-version, build, build-docker] permissions: contents: write steps: @@ -124,7 +124,7 @@ jobs: - name: Create release env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | TAG="${{ needs.generate-version.outputs.tag }}" TITLE="${{ needs.generate-version.outputs.version }}"