Skip to content

Commit b574d85

Browse files
committed
TST: Add manual trigger option to GHA
1 parent 1836933 commit b574d85

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/testing.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
workflow_dispatch:
9+
inputs:
10+
nipype_branch:
11+
description: 'Build specific Nipype branch'
12+
required: true
13+
default: 'master'
814

915

1016
jobs:
@@ -14,7 +20,10 @@ jobs:
1420
steps:
1521
- uses: actions/checkout@v2
1622
- name: generate the Dockerfile from generate.sh
17-
run: bash generate.sh
23+
run: |
24+
BRANCH=${{ github.event.inputs.nipype_branch }}
25+
BRANCH=${BRANCH:-"master"}
26+
bash generate.sh $BRANCH
1827
# In this step, this action saves a list of existing images,
1928
# the cache is created without them in the post run.
2029
# It also restores the cache if it exists.

0 commit comments

Comments
 (0)