Update deployment workflows to trigger on workflow_run
Changed Cloudflare Pages and EdgeOne Pages workflows to trigger on successful completion of the 'Sync to Pages' workflow for the main branch, instead of on push to pages branch. Also updated permissions and job names for clarity and consistency.
This commit is contained in:
1 parent
94e18b6884
commit
6c39eae815
3 files changed
+14
-5
No files matched your search
@@ -1,9 +1,12 @@
|
||||
name: Deploy to Cloudflare Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
workflow_run:
|
||||
workflows: ["Sync to Pages"]
|
||||
types:
|
||||
- completed
|
||||
branches:
|
||||
- pages
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
@@ -17,6 +20,7 @@ jobs:
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
|
||||
steps:
|
||||
- name: Checkout pages branch
|
||||
|
||||
Reference in new issue
Block a user