Skip to content

Commit

Permalink
Run Sanity deploy preview only when PR is labeled
Browse files Browse the repository at this point in the history
- Run workflow step only if the pull request is labeled with 'sanity'
  • Loading branch information
taesungh committed Nov 1, 2024
1 parent 4366ce4 commit cb4b276
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: Deploy Preview

on:
pull_request:
branches:
main

permissions:
contents: read
Expand Down Expand Up @@ -36,6 +38,7 @@ jobs:
vercel-project-id: ${{ vars.VERCEL_PROJECT_ID_SITE}}
Studio:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'sanity')
steps:
- uses: actions/checkout@v2
- uses: amondnet/vercel-action@v25
Expand Down

0 comments on commit cb4b276

Please sign in to comment.