Skip to content

Commit ec04787

Browse files
committed
fix: Prevent workflow from running on PR checkbox toggles
1 parent 98556a1 commit ec04787

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/autolabel-pr-issue.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,16 @@ permissions:
1212

1313
jobs:
1414
sync-pr-metadata:
15+
if: |
16+
github.event.action != 'edited' ||
17+
(
18+
github.event.changes.body &&
19+
(
20+
contains(github.event.changes.body.from || '', '#') !=
21+
contains(github.event.pull_request.body || '', '#')
22+
)
23+
)
1524
runs-on: ubuntu-latest
16-
1725
steps:
1826
# Step 1: Checkout repository
1927
- name: Checkout

0 commit comments

Comments
 (0)