Skip to content

Commit 6bdc53f

Browse files
committed
feat: exit 78
1 parent 6fe0dfc commit 6bdc53f

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/prerelease.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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:
@@ -60,7 +64,6 @@ jobs:
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 }}

0 commit comments

Comments
 (0)