diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bfefa40..c5e59ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -17,7 +17,11 @@ on: - '**.adoc' - '**.md' - 'LICENSE' - workflow_dispatch: + workflow_run: + workflows: + - Update Snapshots + types: + - completed schedule: - cron: '0 12 * * *' diff --git a/.github/workflows/update-snapshots.yml b/.github/workflows/update-snapshots.yml index f6e7294..9fe8cc9 100644 --- a/.github/workflows/update-snapshots.yml +++ b/.github/workflows/update-snapshots.yml @@ -21,14 +21,3 @@ 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: context.ref, - })