Skip to content

Commit 0910ea9

Browse files
committed
CI: github: run aws-lc workflow after the push CI in another list
This patch allow the aws-lc workflow to run once the matrix.py workflow was finished. This way it will run in a separate workflow without altering the CI status of the commit. It uses the github-script action to start the new workflow.
1 parent cb8e35c commit 0910ea9

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/trigger-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: trigger-ci-job
2+
3+
on:
4+
push:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
push-job:
11+
name: Hollow job
12+
runs-on: ubuntu-latest
13+
- name: show
14+
run: |
15+
echo "Run"
16+
17+
trigger-ci-job:
18+
runs-on: ubuntu-latest
19+
needs: push-job
20+
steps:
21+
- name: Trigger CI Job Workflow
22+
uses: actions/github-script@v6
23+
with:
24+
github-token: ${{ secrets.GITHUB_TOKEN }}
25+
script: |
26+
await github.rest.actions.createWorkflowDispatch({
27+
owner: context.repo.owner,
28+
repo: context.repo.repo,
29+
workflow_id: 'aws-lc.yml',
30+
});
31+
console.log(response);

0 commit comments

Comments
 (0)