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.
1 parent 6f1d62d commit 225bee9Copy full SHA for 225bee9
.github/workflows/preview-release.yml
@@ -30,6 +30,14 @@ jobs:
30
# https://github.community/t/action-does-not-trigger-another-on-push-tag-action/17148/8
31
token: ${{ steps.generate_github_token.outputs.token }}
32
33
+ - name: Validate branch name
34
+ run: |
35
+ BRANCH_NAME=$(echo "${GITHUB_REF#refs/heads/}" | tr '/' '-')
36
+ if [[ ! "$BRANCH_NAME" =~ ^preview/[a-zA-Z0-9_-]+$ ]]; then
37
+ echo "Ignoring PR because of the branch name. Exiting workflow."
38
+ exit 1
39
+ fi
40
+
41
- name: Setup Node (uses version in .nvmrc)
42
uses: actions/setup-node@v4
43
with:
0 commit comments