Skip to content

Commit 48af520

Browse files
committed
ci: update run condition of pr-labeler
1 parent 6111074 commit 48af520

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/pr-labeler.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ concurrency:
1111
jobs:
1212
auto-label:
1313
runs-on: ubuntu-latest
14-
if: github.event.action != 'closed' || github.event.pull_request.merged == true
14+
if: |
15+
(github.event.action == 'opened') ||
16+
(github.event.action == 'edited' && github.event.pull_request.state == 'open') ||
17+
(github.event.action == 'closed' && github.event.pull_request.merged == true)
1518
permissions:
1619
pull-requests: write
1720
contents: read

0 commit comments

Comments
 (0)