Skip to content

Commit 19e1b4f

Browse files
authored
Enhance smoketest workflow with SHA output and checkout ref
Added output for SHA from branch-deploy step and updated PR checkout reference.
1 parent 3c33f52 commit 19e1b4f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/smoketest.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
if: github.event.issue.pull_request # Make sure the comment is on a PR
2121
outputs:
2222
allowed: ${{ steps.branch-deploy.outputs.continue }}
23+
sha: ${{ steps.branch-deploy.outputs.sha }}
2324
steps:
2425
- name: branch-deploy
2526
id: branch-deploy
@@ -47,10 +48,10 @@ jobs:
4748

4849
- name: Checkout the PR
4950
env:
50-
PR_NUMBER: ${{ github.event.issue.number }}
51+
REF: ${{ needs.permission-check.outputs.sha }}
5152
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5253
run: |
53-
gh pr checkout $PR_NUMBER
54+
gh pr checkout $REF
5455
5556
- name: Setup Python venv
5657
run: |

0 commit comments

Comments
 (0)