ci: Trigger CI workflow after the snapshots update

This commit is contained in:
Antonin Stefanutti 2023-02-13 18:05:22 +01:00 committed by Antonin Stefanutti
parent 2e64ccada0
commit 0a53d04511
2 changed files with 13 additions and 1 deletions

View File

@ -17,6 +17,7 @@ on:
- '**.adoc'
- '**.md'
- 'LICENSE'
repository_dispatch:
schedule:
- cron: '0 12 * * *'

View File

@ -1,4 +1,4 @@
name: Update snapshots
name: Update Snapshots
on:
workflow_dispatch:
@ -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: context.ref,
})