[CI] Don't run label workflow on closed/merged PRs (#15678)

This commit is contained in:
Jesse Hills
2026-04-13 10:46:49 +12:00
committed by GitHub
parent daa68a2a60
commit 5608aa10a5
+1 -1
View File
@@ -20,7 +20,7 @@ env:
jobs:
label:
runs-on: ubuntu-latest
if: github.event.action != 'labeled' || github.event.sender.type != 'Bot'
if: github.event.pull_request.state == 'open' && (github.event.action != 'labeled' || github.event.sender.type != 'Bot')
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2