File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Issue comment watcher
2+
3+ on :
4+ issue_comment :
5+ types : [created, edited]
6+
7+ jobs :
8+ run :
9+ name : Parsing issue comment
10+ strategy :
11+ matrix :
12+ workflow : ["MacOS CI", "Ubuntu CI"]
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Comment checker
16+ uses : khan/pull-request-comment-trigger@1.0.0
17+ id : check
18+ with :
19+ trigger : ' [ci-build]'
20+ env :
21+ GITHUB_TOKEN : ' ${{ secrets.GITHUB_TOKEN }}'
22+
23+ - name : Check result
24+ if : steps.check.outputs.triggered == 'true'
25+ run : |
26+ echo "Trigger key detected."
27+
28+ - name : Trigger workflow ${{ matrix.workflow }}
29+ if : steps.check.outputs.triggered == 'true'
30+ uses : benc-uk/workflow-dispatch@v1
31+ with :
32+ workflow : ${{ matrix.workflow }}
33+ token : ${{ secrets.SOFA_REPO_WRITE_TOKEN }}
You can’t perform that action at this time.
0 commit comments