We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f3876e + 603132b commit 84ea81dCopy full SHA for 84ea81d
1 file changed
.github/workflows/release.yaml
@@ -3,9 +3,12 @@
3
name: Create Release on Merge
4
5
on:
6
- pull_request:
+ pull_request_target:
7
types: [closed]
8
9
+permissions:
10
+ contents: write
11
+
12
jobs:
13
release:
14
# Run only when the pull request was actually merged (not just closed)
@@ -17,6 +20,8 @@ jobs:
17
20
steps:
18
21
- name: Checkout repository
19
22
uses: actions/checkout@v4
23
+ with:
24
+ ref: ${{ github.event.pull_request.merge_commit_sha }}
25
26
# Generate a tag based on current UTC date‑time down to seconds, e.g., v20250504123045
27
- name: Set release tag
@@ -31,4 +36,4 @@ jobs:
31
36
generate_release_notes: true
32
37
files: Dictionary/data_v1.json
33
38
env:
34
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments