From e4ed4a2f26e98b64b1912f6398c520435bdba66b Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Wed, 4 Sep 2024 18:18:26 +0100 Subject: [PATCH] Trigger CI workflow with `github.rest.actions` --- .github/workflows/ci.yml | 4 ---- .github/workflows/create-tag.yml | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c202d3e95..67a96d41d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -9,10 +9,6 @@ on: inputs: version: description: Synergy version number - workflow_run: - workflows: ["Create tag"] - types: - - completed pull_request: types: - opened diff --git a/.github/workflows/create-tag.yml b/.github/workflows/create-tag.yml index 9581bf507..73032233f 100644 --- a/.github/workflows/create-tag.yml +++ b/.github/workflows/create-tag.yml @@ -40,3 +40,14 @@ jobs: git tag ${{ steps.next-version.outputs.next-version }} git push origin ${{ steps.next-version.outputs.next-version }} shell: bash + + - name: Trigger CI workflow + uses: actions/github-script@v7 + with: + script: | + await github.rest.actions.createWorkflowDispatch({ + owner: context.repo.owner, + repo: context.repo.repo, + workflow_id: 'ci.yml', + ref: '${{ steps.next-version.outputs.next-version }}' + });