File tree Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Expand file tree Collapse file tree 1 file changed +19
-2
lines changed Original file line number Diff line number Diff line change 13
13
STEP_3_FILE : " .github/steps/4-step.md"
14
14
15
15
jobs :
16
- required_issue_comment_keywords :
16
+ check_keywords :
17
17
name : Check issue comment text for required keyword
18
18
runs-on : ubuntu-latest
19
19
20
+ outputs :
21
+ result : ${{ steps.combine_checks.outputs.result }}
22
+
20
23
steps :
21
24
- name : Check for professortocat reference
25
+ id : check_professortocat
22
26
uses : skills/action-keyphrase-checker@v1
27
+ continue-on-error : true
23
28
with :
24
29
text : ${{ github.event.comment.body }}
25
30
keyphrase : " professortocat"
26
31
case-sensitive : false
27
32
minimum-occurrences : 1
28
33
29
34
- name : Check for alert reference
35
+ id : check_alert
30
36
uses : skills/action-keyphrase-checker@v1
37
+ continue-on-error : true
31
38
with :
32
39
text : ${{ github.event.comment.body }}
33
40
keyphrase : " alert"
34
41
case-sensitive : false
35
42
minimum-occurrences : 1
36
43
44
+ - name : Set continue output if both checks succeeded
45
+ id : combine_checks
46
+ run : |
47
+ if [[ "${{ steps.check_professortocat.outcome }}" == "success" && "${{ steps.check_alert.outcome }}" == "success" ]]; then
48
+ echo "result=success" >> "$GITHUB_OUTPUT"
49
+ else
50
+ echo "result=fail" >> "$GITHUB_OUTPUT"
51
+ fi
52
+
37
53
find_exercise :
38
- needs : [required_issue_comment_keywords ]
54
+ needs : [check_keywords ]
39
55
name : Find Exercise Issue
56
+ if : needs.check_keywords.outputs.result == 'success'
40
57
uses :
skills/exercise-toolkit/.github/workflows/[email protected]
41
58
42
59
post_next_step_content :
You can’t perform that action at this time.
0 commit comments