From 5fb0d4022528e4e0ac097f45f856725d3a943613 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 | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 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..7d4225e7a --- /dev/null +++ b/.github/workflows/trigger-ci.yml @@ -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);