Skip to content

Commit 551ce0e

Browse files
committed
Only trigger on labeled issues
1 parent e9de48e commit 551ce0e

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/process-issue-closed.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
if: |
19-
github.event.issue.state == 'closed'
19+
contains(github.event.issue.labels.*.name, 'gh-intermediate-class') &&
20+
contains(github.event.issue.labels.*.name, 'provisioned')
2021
2122
steps:
2223
- name: Get GitHub App Token

.github/workflows/process-issue-comment.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ jobs:
2222
startsWith(github.event.comment.body, '.add-user') ||
2323
startsWith(github.event.comment.body, '.remove-admin') ||
2424
startsWith(github.event.comment.body, '.remove-user')
25-
)
25+
) &&
26+
contains(github.event.issue.labels.*.name, 'gh-intermediate-class') &&
27+
contains(github.event.issue.labels.*.name, 'provisioned')
2628
2729
steps:
2830
- name: Get GitHub App Token

0 commit comments

Comments
 (0)