Commit 173292b
build: fix commit-queue default branch
`github.repository.default_branch` is not a valid context variable, and
GitHub doesn't have a context or environment variable containing the
default branch. It does have `github.ref` and `$GITHUB_REF`, which
contains the default branch _reference_ (as in `refs/heads/<branch>`),
so we can use that and remove the `refs/heads/` prefix.
PR-URL: #38998
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Robert Nagy <ronagy@icloud.com>1 parent be5101e commit 173292bCopy full SHA for 173292b
File tree
Expand file treeCollapse file tree
1 file changed
+6
-5
lines changedOpen diff view settings
Filter options
- .github/workflows
Expand file treeCollapse file tree
1 file changed
+6
-5
lines changedOpen diff view settings
Collapse file
.github/workflows/commit-queue.yml
Copy file name to clipboardExpand all lines: .github/workflows/commit-queue.yml+6-5Lines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
45 | 45 | |
46 | 46 | |
47 | 47 | |
| 48 | + |
48 | 49 | |
49 | 50 | |
50 | 51 | |
| ||
63 | 64 | |
64 | 65 | |
65 | 66 | |
66 | | - |
| 67 | + |
67 | 68 | |
68 | 69 | |
69 | 70 | |
70 | 71 | |
71 | 72 | |
72 | | - |
| 73 | + |
73 | 74 | |
74 | 75 | |
75 | 76 | |
76 | 77 | |
77 | | - |
78 | | - |
| 78 | + |
| 79 | + |
79 | 80 | |
80 | 81 | |
81 | | - |
| 82 | + |
0 commit comments