Skip to content

Commit 4d0c2ce

Browse files
CoreValidation: Checkout the PR, not develop branch
CoreValidation workflow should checkout PR code.
1 parent ca5e934 commit 4d0c2ce

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/corevalidation.yml

+23-1
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,30 @@ jobs:
4949
avhresult: ${{ steps.avh.conclusion }}
5050
testbadge: ${{ steps.avh.outputs.badge }}
5151
steps:
52-
- name: Check out repository code
52+
- name: Download workflow artifact
53+
uses: dawidd6/action-download-artifact@v2
54+
with:
55+
github_token: ${{ secrets.GITHUB_TOKEN }}
56+
workflow: caller-corevalidation.yml
57+
run_id: ${{ github.event.workflow_run.id }}
58+
59+
- name: Read the pr_num file
60+
id: pr_num_reader
61+
uses: juliangruber/[email protected]
62+
with:
63+
path: ./pr_number/pr_number
64+
trim: true
65+
66+
- name: Clone this repo
5367
uses: actions/checkout@v3
68+
with:
69+
fetch-depth: 0
70+
71+
- name: Checkout PR
72+
env:
73+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
74+
run: |
75+
gh pr checkout ${{ steps.pr_num_reader.outputs.content }}
5476
5577
- name: Set up Python 3.10
5678
uses: actions/setup-python@v4

0 commit comments

Comments
 (0)