Skip to content

Commit d14653d

Browse files
committed
[github] ADD ci-build workflow
1 parent 4e74e4f commit d14653d

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci-build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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 }}

0 commit comments

Comments
 (0)