mirror of
https://github.com/astefanutti/decktape.git
synced 2024-09-11 22:27:11 +03:00
ci: Trigger CI workflow after the snapshots update
This commit is contained in:
parent
2e64ccada0
commit
0a53d04511
1
.github/workflows/ci.yml
vendored
1
.github/workflows/ci.yml
vendored
@ -17,6 +17,7 @@ on:
|
|||||||
- '**.adoc'
|
- '**.adoc'
|
||||||
- '**.md'
|
- '**.md'
|
||||||
- 'LICENSE'
|
- 'LICENSE'
|
||||||
|
repository_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 12 * * *'
|
- cron: '0 12 * * *'
|
||||||
|
|
||||||
|
13
.github/workflows/update-snapshots.yml
vendored
13
.github/workflows/update-snapshots.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Update snapshots
|
name: Update Snapshots
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@ -21,3 +21,14 @@ jobs:
|
|||||||
git add .
|
git add .
|
||||||
git commit -m "test: update snapshot PDFs"
|
git commit -m "test: update snapshot PDFs"
|
||||||
git push
|
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,
|
||||||
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user