From c2b4dec77a33ee453faa21e32c23b6e0b82931ff Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Tue, 10 Oct 2023 01:21:44 +0200 Subject: [PATCH] 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. --- .github/workflows/trigger-ci.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/trigger-ci.yml diff --git a/.github/workflows/trigger-ci.yml b/.github/workflows/trigger-ci.yml new file mode 100644 index 000000000..80b8e6511 --- /dev/null +++ b/.github/workflows/trigger-ci.yml @@ -0,0 +1,25 @@ +name: trigger-ci-job + +on: + push: + +permissions: + contents: read + actions: write + +jobs: + trigger-ci-job: + runs-on: ubuntu-latest + 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, + ref: "${{ github.ref }}", + workflow_id: 'aws-lc.yml', + }); + console.log(response);