We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 686a126 commit f490ccaCopy full SHA for f490cca
.github/workflows/release-drafter.yml
@@ -10,7 +10,7 @@ on:
10
types: [opened, reopened, synchronize]
11
12
permissions:
13
- contents: read
+ contents: write
14
15
jobs:
16
update_release_draft:
@@ -36,6 +36,13 @@ jobs:
36
uses: actions/checkout@v4
37
with:
38
fetch-depth: 0
39
+
40
+ - name: Ensure correct branch is checked out (only on PR)
41
+ if: github.event_name == 'pull_request'
42
+ run: |
43
+ echo "Checking out PR source branch: ${{ github.head_ref }}"
44
+ git fetch origin ${{ github.head_ref }}
45
+ git checkout ${{ github.head_ref }}
46
47
- name: Setup Node.js
48
uses: actions/setup-node@v4
0 commit comments