Skip to content

Commit 26c7b15

Browse files
committed
ci: fix checkout ref fallback in openapi job
1 parent 288fa84 commit 26c7b15

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- uses: actions/checkout@v6
5454
with:
5555
token: ${{ secrets.RELEASE_PLEASE_TOKEN || github.token }}
56-
ref: ${{ github.head_ref }}
56+
ref: ${{ (github.event_name == 'pull_request' && startsWith(github.head_ref, 'release-please--')) && github.head_ref || github.sha }}
5757
fetch-depth: 0
5858

5959
- uses: ruby/setup-ruby@v1

0 commit comments

Comments
 (0)