Skip to content

Commit 8ec33d6

Browse files
OreoxmtTest User
authored andcommitted
ci: fall back to GITHUB_REF_NAME when GITHUB_BASE_REF is empty (#21617)
1 parent 774c25d commit 8ec33d6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/keywords.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@v6
1414
- run: |
15+
REF="${GITHUB_BASE_REF:-$GITHUB_REF_NAME}"
1516
./scripts/check-keywords.py \
1617
--download_from_url \
17-
--parser_url https://github.com/pingcap/tidb/raw/refs/heads/${GITHUB_BASE_REF}/pkg/parser/parser.y
18+
--parser_url "https://github.com/pingcap/tidb/raw/refs/heads/${REF}/pkg/parser/parser.y"

0 commit comments

Comments
 (0)