Skip to content

Commit

Permalink
Trigger a PR deployment only when properly labeled (#1008)
Browse files Browse the repository at this point in the history
  • Loading branch information
muzuke authored Nov 1, 2024
1 parent 1babf78 commit 7902fb1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ on:
- ".github/workflows/sandbox-ci.yaml"
branches:
- main
types:
- opened
- synchronize
- reopened
- ready_for_review
- labeled
- unlabeled
release:
types:
- prereleased
Expand Down Expand Up @@ -342,7 +349,7 @@ jobs:
NPM_LOCAL_CACHE=.cache/
deploy_pull_request:
if: ${{ github.event.pull_request }}
if: ${{ github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'deploy-pr') }}
name: Deploy PR
needs:
- push-dashboard
Expand Down

0 comments on commit 7902fb1

Please sign in to comment.