Skip to content

Commit

Permalink
CI: github: run aws-lc workflow after the push CI in another list
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
wlallemand committed Oct 9, 2023
1 parent cb8e35c commit 5fb0d40
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/trigger-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: trigger-ci-job

on:
push:

permissions:
contents: read

jobs:
push-job:
runs-on: ubuntu-latest
steps:
- name: hollow job
run: |
echo "Run"
trigger-ci-job:
runs-on: ubuntu-latest
needs: push-job
steps:
- name: Trigger CI Job Workflow
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'aws-lc.yml',
});
console.log(response);

0 comments on commit 5fb0d40

Please sign in to comment.