There was an error while loading. Please reload this page.
1 parent 7643650 commit 5cc9a8aCopy full SHA for 5cc9a8a
1 file changed
.github/actions/upgrade-test-setup/action.yaml
@@ -30,8 +30,12 @@ runs:
30
- name: Resolve upgrade-from version
31
id: resolve
32
shell: bash
33
+ env:
34
+ MERGE_GROUP_BASE_REF: ${{ github.event.merge_group.base_ref }}
35
run: |
- base_ref="${GITHUB_BASE_REF:-${GITHUB_REF_NAME:-}}"
36
+ # A merge group has no GITHUB_BASE_REF; its ref name is gh-readonly-queue/<base>/pr-N-<sha>.
37
+ base_ref="${GITHUB_BASE_REF:-${MERGE_GROUP_BASE_REF#refs/heads/}}"
38
+ base_ref="${base_ref:-${GITHUB_REF_NAME:-}}"
39
is_release_line=false
40
if [[ "$base_ref" =~ ^release/v[0-9]+\.[0-9]+\.x$ ]]; then
41
is_release_line=true
0 commit comments