From 949a3f011a445c840d27e3a49c96e8873d301234 Mon Sep 17 00:00:00 2001 From: Antonin Stefanutti Date: Mon, 13 Feb 2023 19:37:11 +0100 Subject: [PATCH] ci: Retry workflow_dispatch --- .github/workflows/ci.yml | 6 +----- .github/workflows/update-snapshots.yml | 11 +++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c5e59ca..bfefa40 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,11 +17,7 @@ on: - '**.adoc' - '**.md' - 'LICENSE' - workflow_run: - workflows: - - Update Snapshots - types: - - completed + workflow_dispatch: schedule: - cron: '0 12 * * *' diff --git a/.github/workflows/update-snapshots.yml b/.github/workflows/update-snapshots.yml index 9fe8cc9..05830ab 100644 --- a/.github/workflows/update-snapshots.yml +++ b/.github/workflows/update-snapshots.yml @@ -21,3 +21,14 @@ jobs: git add . git commit -m "test: update snapshot PDFs" git push + - name: Trigger CI Workflow + uses: actions/github-script@v6 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + script: | + github.rest.actions.createWorkflowDispatch({ + owner: context.repo.owner, + repo: context.repo.repo, + workflow_id: 'ci.yml', + ref: '${{ github.ref }}', + })