Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/deploy-bundle-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
exit 1
fi
}
validate_branch_name "${{ github.event.pull_request.head.ref }}"
validate_branch_name "${{ github.event.pull_request.head.ref || github.ref_name }}"

- name: Extract Branch Names
id: extract_branch
Expand All @@ -53,7 +53,7 @@ jobs:
}

# Transform branch names in form of `refs/heads/main` to `main`
draft_branch=$(extract_branch "${{ github.event.pull_request.head.ref }}")
draft_branch=$(extract_branch "${{ github.event.pull_request.head.ref || github.ref_name }}")

# Replace / with - in the draft branch name to use as a directory name
draft_directory=$(echo "$draft_branch" | tr / -)
Expand Down
Loading