Skip to content

Commit d71ef32

Browse files
authored
Change trigger in step 3
1 parent c29808b commit d71ef32

File tree

1 file changed

+24
-2
lines changed

1 file changed

+24
-2
lines changed

.github/workflows/3-step.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Step 3
22

33
on:
4-
issues:
5-
types: [opened]
4+
issue_comment:
5+
types: [created, edited]
66

77
permissions:
88
contents: read
@@ -13,7 +13,29 @@ env:
1313
STEP_3_FILE: ".github/steps/4-step.md"
1414

1515
jobs:
16+
required_issue_comment_keywords:
17+
name: Check issue comment text for required keyword
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Check for professortocat reference
22+
uses: skills/action-keyphrase-checker@v1
23+
with:
24+
text: ${{ github.event.comment.body }}
25+
keyphrase: "professortocat"
26+
case-sensitive: false
27+
minimum-occurrences: 1
28+
29+
- name: Check for alert reference
30+
uses: skills/action-keyphrase-checker@v1
31+
with:
32+
text: ${{ github.event.comment.body }}
33+
keyphrase: "alert"
34+
case-sensitive: false
35+
minimum-occurrences: 1
36+
1637
find_exercise:
38+
needs: [required_issue_comment_keywords]
1739
name: Find Exercise Issue
1840
uses: skills/exercise-toolkit/.github/workflows/[email protected]
1941

0 commit comments

Comments
 (0)