There was an error while loading. Please reload this page.
1 parent 3962d68 commit 8f13248Copy full SHA for 8f13248
1 file changed
.github/workflows/release.yaml
@@ -1,4 +1,3 @@
1
-
2
name: "Release Automation"
3
4
on:
@@ -25,6 +24,11 @@ jobs:
25
24
steps:
26
- name: Checkout Code
27
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
+ with:
28
+ # PR is guaranteed merged (see job `if`), so this commit is on master.
29
+ # Checking out the merge commit avoids fetching fork PR code, which
30
+ # actions/checkout v7 refuses in pull_request_target workflows.
31
+ ref: ${{ github.event.pull_request.merge_commit_sha }}
32
33
- name: Extract Version from PR Title
34
env:
@@ -66,3 +70,4 @@ jobs:
66
70
gh release create "$VERSION" \
67
71
--title "$VERSION" \
68
72
--notes-file release_notes.md
73
+
0 commit comments