forked from XiaoMo/ChatGPT-Next-Web
add workflow_dispatch
This commit is contained in:
parent
8fb34465cd
commit
0739ced407
15
.github/workflows/deploy_preview.yml
vendored
15
.github/workflows/deploy_preview.yml
vendored
@ -1,5 +1,12 @@
|
|||||||
name: VercelPreviewDeployment
|
name: VercelPreviewDeployment
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
branchName:
|
||||||
|
description: 'Branch to deploy'
|
||||||
|
required: true
|
||||||
|
|
||||||
env:
|
env:
|
||||||
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
|
||||||
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
|
||||||
@ -11,17 +18,13 @@ permissions:
|
|||||||
statuses: write
|
statuses: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
on:
|
|
||||||
pull_request:
|
|
||||||
types:
|
|
||||||
- opened
|
|
||||||
- synchronize
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy-preview:
|
deploy-preview:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.event.inputs.branchName }}
|
||||||
|
|
||||||
- name: Extract branch name
|
- name: Extract branch name
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
Reference in New Issue
Block a user