File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 1
- name : Array API CI
1
+ name : Array API
2
2
on :
3
3
workflow_dispatch :
4
+ inputs :
5
+ pr_id :
6
+
4
7
# Temporary addition to execute workflow on pull requests, but only those
5
8
# that modify this file
6
9
pull_request :
15
18
- uses : actions/setup-python@v4
16
19
with :
17
20
python-version : ' 3.12'
18
- - name : Checkout code
21
+ # change this to checkout a particular PR if a PR number is provided as input
22
+ - name : Checkout main repository
19
23
uses : actions/checkout@v2
24
+ - name : Checkout a particular Pull Request
25
+ if : inputs.pr_id
26
+ env :
27
+ PR_ID : ${{ inputs.pr_id }}
28
+ run : |
29
+ echo "Checking out" ${{ env.PR_ID }}
30
+ gh pr checkout ${{ env.PR_ID }}
20
31
- name : Install miniforge
21
32
run : |
22
33
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
You can’t perform that action at this time.
0 commit comments