File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ permissions:
1414
1515jobs :
1616 deploy :
17- if : contains(github.event.pull_request.labels.*.name, 'prerelease')
1817 runs-on : ubuntu-latest
1918 strategy :
2019 matrix :
2726 secret_project_id : VERCEL_PROJECT_ZH_HANT_ID
2827 name : Deploy ${{ matrix.locale }}
2928 steps :
29+ # If the label is 'prerelease', all jobs run.
30+ # If the label is 'prerelease:zh-hant', only the zh-hant job runs, etc.
31+ - name : Skip if not matching label
32+ if : |
33+ github.event_name == 'pull_request' &&
34+ !contains(github.event.pull_request.labels.*.name, 'prerelease') &&
35+ !contains(github.event.pull_request.labels.*.name, format('prerelease:{0}', matrix.locale))
36+ run : |
37+ echo "Skipping deploy for ${{ matrix.locale }} due to missing label."
38+ exit 0
3039 - name : Checkout code
3140 uses : actions/checkout@v3
3241 with :
You can’t perform that action at this time.
0 commit comments