Skip to content

Commit 2e022ca

Browse files
author
Mark Saroufim
committed
Fix GitHub integration test to use PR branch
Set GITHUB_BRANCH env var to use the PR's source branch instead of falling back to main. Uses github.head_ref for PRs, github.ref_name for direct pushes.
1 parent 6fcc19f commit 2e022ca

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/testing.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ jobs:
5858
if: github.actor != 'dependabot[bot]'
5959
env:
6060
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
61+
GITHUB_BRANCH: ${{ github.head_ref || github.ref_name }}
6162
steps:
6263
- uses: actions/checkout@v4
6364
- uses: astral-sh/setup-uv@v4

0 commit comments

Comments
 (0)