Skip to content

Commit 456e309

Browse files
Merge pull request #61 from kevinbackhouse/smoketest
Run the code from the PR, not from main
2 parents 3165ef1 + 6ea8dbd commit 456e309

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/smoketest.yaml

Lines changed: 8 additions & 3 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,14 @@ jobs:
3132
with:
3233
python-version: '3.11'
3334

34-
- name: Checkout
35+
- name: Checkout the repo
3536
uses: actions/checkout@v5
36-
with:
37-
ref: ${{ github.head_ref }}
37+
38+
- name: Checkout the PR
39+
env:
40+
PR_NUMBER: ${{ github.event.issue.number }}
41+
run: |
42+
gh pr checkout $PR_NUMBER
3843
3944
- name: Setup Python venv
4045
run: |

0 commit comments

Comments
 (0)