Skip to content

Commit

Permalink
add workflow_dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
孙高猛 committed Jan 24, 2024
1 parent bdc25ad commit 3bc771a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/deploy_preview.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
name: VercelPreviewDeployment

on:
workflow_dispatch:
inputs:
branchName:
description: 'Branch to deploy'
required: true

env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
Expand All @@ -11,17 +18,13 @@ permissions:
statuses: write
pull-requests: write

on:
pull_request:
types:
- opened
- synchronize

jobs:
deploy-preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branchName }}

- name: Extract branch name
shell: bash
Expand Down

0 comments on commit 3bc771a

Please sign in to comment.