mirror of
https://github.com/astefanutti/decktape.git
synced 2024-08-18 02:30:23 +03:00
ci: Use workflow_run instead of workflow_dispatch
This commit is contained in:
parent
e7d0041b2a
commit
12031f0381
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@ -17,7 +17,11 @@ on:
|
||||
- '**.adoc'
|
||||
- '**.md'
|
||||
- 'LICENSE'
|
||||
workflow_dispatch:
|
||||
workflow_run:
|
||||
workflows:
|
||||
- Update Snapshots
|
||||
types:
|
||||
- completed
|
||||
schedule:
|
||||
- cron: '0 12 * * *'
|
||||
|
||||
|
11
.github/workflows/update-snapshots.yml
vendored
11
.github/workflows/update-snapshots.yml
vendored
@ -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,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user