Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,10 @@ jobs:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
# Check out the base branch (merged code), not the fork PR head.
# Without an explicit ref, pull_request_target defaults to
# refs/pull/N/merge, which checkout v7 refuses as fork code.
ref: ${{ github.event.pull_request.base.ref || github.ref }}
Comment thread
jmeridth marked this conversation as resolved.
Outdated
fetch-depth: 0
persist-credentials: true # Required for git push of tags
- name: Draft release
Expand Down Expand Up @@ -190,6 +194,9 @@ jobs:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
# Build from the release tag, matching release_image. Avoids the
# checkout v7 fork-PR refusal under pull_request_target.
ref: ${{ needs.create_release.outputs.full-tag }}
fetch-depth: 0
persist-credentials: false

Expand Down
Loading