Skip to content

Commit ba38857

Browse files
hotfix: use event pr label
Signed-off-by: Tsung-Ju Lii <[email protected]>
1 parent 3703768 commit ba38857

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/generate_post_from_pr.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ description: When a PR that has label `post` is merged, this action will generat
33

44
on:
55
pull_request:
6-
types: [labeled, closed]
6+
types:
7+
- closed
78

89
jobs:
910
generate_post:
10-
if: ${{ github.event.label.name == 'post' }}
11+
if: ${{ github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name, 'post') }}
1112
runs-on: ubuntu-latest
1213

1314
steps:

drafts/make-new-post-via-github-pull-request

Whitespace-only changes.

0 commit comments

Comments
 (0)