Skip to content

Commit f490cca

Browse files
committed
git auto commit changes
Signed-off-by: Vedansh Saini <[email protected]>
1 parent 686a126 commit f490cca

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/release-drafter.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
types: [opened, reopened, synchronize]
1111

1212
permissions:
13-
contents: read
13+
contents: write
1414

1515
jobs:
1616
update_release_draft:
@@ -36,6 +36,13 @@ jobs:
3636
uses: actions/checkout@v4
3737
with:
3838
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 }}
3946
4047
- name: Setup Node.js
4148
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)