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: 3 additions & 1 deletion .github/workflows/regenerate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ jobs:
export GIT_SSH_COMMAND="ssh -i $key -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new"
git clone -q "git@github.com:${GITHUB_REPOSITORY}.git" branch
cd branch
if git ls-remote --exit-code --heads origin "${{ matrix.branch }}" >/dev/null; then
# The exact ref: a bare name matches by its tail, and a pull request's branch such as
# feat/full-alt would pass for full-alt.
if git ls-remote --exit-code origin "refs/heads/${{ matrix.branch }}" >/dev/null; then
git checkout -q "${{ matrix.branch }}"
else
git checkout -q --orphan "${{ matrix.branch }}"
Expand Down