Skip to content
Closed
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
7 changes: 4 additions & 3 deletions .github/workflows/validate-pnpm-config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ jobs:
set -euo pipefail
ref="${WORKFLOW_REF##*@}"

# Caller workflows on pull_request can resolve to refs/pull/<id>/merge, which
# does not exist in the workflows repository. Fall back to the configured branch.
if [[ -z "${ref}" || "${ref}" == refs/pull/* ]]; then
# Caller workflows on pull_request resolve to refs/pull/<id>/merge and on
# merge_group to refs/heads/gh-readonly-queue/*, neither of which exists in
# the workflows repository. Fall back to the configured branch.
if [[ -z "${ref}" || "${ref}" == refs/pull/* || "${ref}" == refs/heads/gh-readonly-queue/* ]]; then
ref="${WORKFLOWS_FALLBACK_REF}"
elif [[ "${ref}" == refs/heads/* ]]; then
ref="${ref#refs/heads/}"
Expand Down
Loading