Use workflow_run event to run website workflow

This commit is contained in:
Pascal Jufer 2023-11-12 00:15:50 +01:00
parent c82cc456e1
commit 2684fd353d
No known key found for this signature in database
2 changed files with 6 additions and 12 deletions

View file

@ -62,14 +62,3 @@ jobs:
with:
credentialJson: ${{ secrets.PUB_CREDENTIAL_JSON }}
relativePath: ./packages/iconoir-flutter
- name: Trigger Website Workflow
uses: actions/github-script@v6
with:
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'website.yaml',
ref: 'main',
})

View file

@ -10,7 +10,12 @@ concurrency:
cancel-in-progress: true
on:
workflow_dispatch: {}
workflow_dispatch:
workflow_run:
workflows:
- Release
types:
- completed
jobs:
build: