From 5b9198d943c1d4574ffa6b72d2e9c08523b4adce Mon Sep 17 00:00:00 2001 From: Josh Date: Sun, 7 Jun 2026 19:35:10 -0400 Subject: [PATCH] chore: cleanup draft-release.yml Signed-off-by: Josh --- .github/workflows/draft-release.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index 3579efab..c48a7f41 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -2,6 +2,7 @@ name: Draft image release permissions: contents: write + pull-requests: read on: workflow_dispatch: @@ -18,7 +19,7 @@ on: # - cron: "23 * * * *" concurrency: - group: draft-image-release + group: ${{ github.workflow }}-${{ github.repository }} cancel-in-progress: false defaults: @@ -34,10 +35,6 @@ jobs: uses: actions/checkout@v6 with: fetch-depth: 0 - ref: master - - - name: Ensure origin/master is available - run: git fetch origin master - name: Verify required tools run: | @@ -78,15 +75,22 @@ jobs: - name: Workflow summary if: env.SKIP_RELEASE != 'true' + env: + REPO: ${{ github.repository }} run: | + release_url="https://github.com/${REPO}/releases/tag/${RELEASE_TAG}" { echo "## Draft release prepared" echo echo "- Release tag: \`$RELEASE_TAG\`" echo "- Target SHA: \`$TARGET_SHA\`" echo "- Previous tag: \`$PREVIOUS_TAG\`" - echo "- Official Images PR: #$OFFICIAL_IMAGES_PR" - echo "- Official Images URL: $OFFICIAL_IMAGES_PR_URL" + echo "- Official Images PR: [#${OFFICIAL_IMAGES_PR}](${OFFICIAL_IMAGES_PR_URL})" + echo "- Draft release: [${RELEASE_TAG}](${release_url})" + echo + echo "### Generated notes" + echo + cat "$RUNNER_TEMP/release-notes.md" } >> "$GITHUB_STEP_SUMMARY" - name: Skip summary