Update workflow triggers and permissions in CI configs

Workflows now trigger on both successful workflow runs and manual dispatch events. Increased timeout and moved permissions block for functions-dn workflow to align with job configuration.
This commit is contained in:
xixu-me committed 2025-11-27 17:41:18 +08:00
1 parent 955851e722
commit 868d5c8bac
5 files changed
+9 -9

No files matched your search

+5 -5
View File
@@ -13,14 +13,14 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false
permissions:
id-token: write
contents: read
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 10
timeout-minutes: 15
permissions:
id-token: write
contents: read
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout functions branch
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
permissions:
contents: read
deployments: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout functions branch
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
permissions:
contents: read
deployments: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
permissions:
contents: read
deployments: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout pages branch
+1 -1
View File
@@ -20,7 +20,7 @@ jobs:
permissions:
contents: read
deployments: write
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Checkout pages branch