File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -42,16 +42,20 @@ jobs:
4242 SHOULD_DEPLOY=true
4343 fi
4444 echo "should_deploy=$SHOULD_DEPLOY" >> $GITHUB_OUTPUT
45+
46+ - name : Skip job if not needed
47+ if : steps.should_deploy.outputs.should_deploy != 'true'
48+ run : |
49+ echo "Skipping deploy for ${{ matrix.locale }} due to missing label."
50+ exit 78
51+
4552 - name : Checkout code
46- if : steps.should_deploy.outputs.should_deploy == 'true'
4753 uses : actions/checkout@v3
4854 with :
4955 fetch-depth : 1
5056 - name : Setup Tools
51- if : steps.should_deploy.outputs.should_deploy == 'true'
5257 uses : ./.github/actions/setup
5358 - name : Deploy to Vercel (${{ matrix.locale }})
54- if : steps.should_deploy.outputs.should_deploy == 'true'
5559 id : deploy
5660 uses : ./.github/actions/vercel-deploy
5761 with :
6064 vercel_org_id : ${{ secrets.VERCEL_ORG_ID }}
6165 vercel_token : ${{ secrets.VERCEL_TOKEN }}
6266 - name : Comment PR with Vercel Preview Links (${{ matrix.locale }})
63- if : steps.should_deploy.outputs.should_deploy == 'true'
6467 uses : ./.github/actions/comment-vercel-preview
6568 with :
6669 inspect_url : ${{ steps.deploy.outputs.inspect_url }}
You can’t perform that action at this time.
0 commit comments