Skip to content

Commit fffa2f7

Browse files
committed
Fix Release Drafter failing on pull requests
disable-releaser on PR events to prevent invalid target_commitish error. Also fix branch name from main to master.
1 parent a5443f5 commit fffa2f7

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/draft.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release Drafter
33
on:
44
push:
55
branches:
6-
- main
6+
- master
77

88
pull_request:
99
types: [opened, reopened, synchronize]
@@ -22,5 +22,7 @@ jobs:
2222
pull-requests: write
2323
steps:
2424
- uses: release-drafter/release-drafter@v7.1.1
25+
with:
26+
disable-releaser: ${{ github.event_name == 'pull_request' }}
2527
env:
2628
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)