Skip to content

Commit e605242

Browse files
Run the code from the PR, not from main.
1 parent 1a34bff commit e605242

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/smoketest.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ permissions:
1616
jobs:
1717
Linux:
1818
runs-on: ubuntu-latest
19+
if: github.event.issue.pull_request # Make sure the comment is on a PR
1920
steps:
2021
- name: branch-deploy
2122
id: branch-deploy
@@ -31,10 +32,11 @@ jobs:
3132
with:
3233
python-version: '3.11'
3334

34-
- name: Checkout
35-
uses: actions/checkout@v5
36-
with:
37-
ref: ${{ github.head_ref }}
35+
- name: Checkout the PR
36+
env:
37+
PR_NUMBER: ${{ github.event.issue.number }}
38+
run: |
39+
gh pr checkout $PR_NUMBER
3840
3941
- name: Setup Python venv
4042
run: |

0 commit comments

Comments
 (0)