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 d476436 commit 5eac972Copy full SHA for 5eac972
.github/workflows/deploy-bundle-preview.yml
@@ -34,7 +34,7 @@ jobs:
34
exit 1
35
fi
36
}
37
- validate_branch_name "${{ github.event.pull_request.head.ref }}"
+ validate_branch_name "${{ github.event.pull_request.head.ref || github.ref_name }}"
38
39
- name: Extract Branch Names
40
id: extract_branch
@@ -53,7 +53,7 @@ jobs:
53
54
55
# Transform branch names in form of `refs/heads/main` to `main`
56
- draft_branch=$(extract_branch "${{ github.event.pull_request.head.ref }}")
+ draft_branch=$(extract_branch "${{ github.event.pull_request.head.ref || github.ref_name }}")
57
58
# Replace / with - in the draft branch name to use as a directory name
59
draft_directory=$(echo "$draft_branch" | tr / -)
0 commit comments