Skip to content

Commit 64218db

Browse files
authored
Merge pull request #236 from cnumr/cms
Cms
2 parents 126ce95 + f685164 commit 64218db

File tree

2 files changed

+23
-16
lines changed

2 files changed

+23
-16
lines changed

.github/workflows/retype-action.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,29 @@ jobs:
2525
with:
2626
config_path: ./docs/retype.yml
2727

28+
- uses: 1arp/[email protected]
29+
with:
30+
path: '.'
31+
isAbsolutePath: false
32+
file: 'script.sh'
33+
content: |
34+
#!/bin/bash
35+
36+
# https://vercel.com/guides/how-do-i-use-the-ignored-build-step-field-on-vercel
37+
38+
echo "VERCEL_GIT_COMMIT_REF: $VERCEL_GIT_COMMIT_REF"
39+
40+
if [[ "$VERCEL_GIT_COMMIT_REF" == "main" || "$VERCEL_GIT_COMMIT_REF" == "cms" || "$VERCEL_GIT_COMMIT_REF" == "feat/cms" ]] ; then
41+
# Proceed with the build
42+
echo "✅ - Build can proceed"
43+
exit 1;
44+
45+
else
46+
# Don't build
47+
echo "🛑 - Build cancelled"
48+
exit 0;
49+
fi
50+
2851
- uses: retypeapp/action-github-pages@latest
2952
with:
3053
update-branch: true

docs/script.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)