Skip to content

Commit f7e390b

Browse files
authored
changelog_evaluator - pull checkout ref from PR (#166)
Because PRs are usually generated from a fork, we have to use the pull_request_target events rather than the pull_request events. This means that by default the checkout plugin will checkout main rather than the PR, and our fragments won't be available.
1 parent 19a2479 commit f7e390b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/actions/changelog_evaluator/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ runs:
3535
steps:
3636
- uses: actions/checkout@v2
3737
id: checkout
38+
with:
39+
ref: refs/pull/${{ github.event.number }}/merge
3840
- name: Fetch change types from changelog fragments
3941
id: evaluate
4042
shell: bash {0}

0 commit comments

Comments
 (0)