We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 126ce95 + f685164 commit 64218dbCopy full SHA for 64218db
.github/workflows/retype-action.yml
@@ -25,6 +25,29 @@ jobs:
25
with:
26
config_path: ./docs/retype.yml
27
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
51
- uses: retypeapp/action-github-pages@latest
52
53
update-branch: true
docs/script.sh
0 commit comments