Skip to content

Commit bb7bfcd

Browse files
committed
Use inputs
1 parent 4dd748e commit bb7bfcd

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

.github/workflows/gpu-ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
name: Array API CI
1+
name: Array API
22
on:
33
workflow_dispatch:
4+
inputs:
5+
pr_id:
6+
47
# Temporary addition to execute workflow on pull requests, but only those
58
# that modify this file
69
pull_request:
@@ -15,8 +18,16 @@ jobs:
1518
- uses: actions/setup-python@v4
1619
with:
1720
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
1923
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 }}
2031
- name: Install miniforge
2132
run: |
2233
curl -L -O "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"

0 commit comments

Comments
 (0)