File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,19 @@ aliases:
9292- &src "/tmp/src/petprep"
9393orbs :
9494 docker : circleci/docker@2.1.4
95+ parameters :
96+ GHA_Actor :
97+ type : string
98+ default : " "
99+ GHA_Action :
100+ type : string
101+ default : " "
102+ GHA_Event :
103+ type : string
104+ default : " "
105+ GHA_Meta :
106+ type : string
107+ default : " "
95108
96109jobs :
97110 build_clean :
@@ -428,6 +441,25 @@ jobs:
428441 steps :
429442 - run : echo Deploying!
430443
444+ pull_image :
445+ << : *machine_defaults
446+ environment :
447+ GHA_Actor : << pipeline.parameters.GHA_Actor >>
448+ GHA_Event : << pipeline.parameters.GHA_Event >>
449+ GHA_Action : << pipeline.parameters.GHA_Action >>
450+ GHA_Meta : << pipeline.parameters.GHA_Meta >>
451+ REVISION : << pipeline.git.revision >>
452+ steps :
453+ - checkout
454+ - run :
455+ name : Print parameters
456+ command : |
457+ echo $GHA_Actor
458+ echo $GHA_Event
459+ echo $GHA_Action
460+ echo $GHA_Meta
461+ echo $REVISION
462+
431463workflows :
432464 version : 2
433465 build_from_scratch :
@@ -444,6 +476,11 @@ workflows:
444476 context :
445477 - nipreps-common
446478
479+ github :
480+ when : << pipeline.parameters.GHA_Action >>
481+ jobs :
482+ - pull_image
483+
447484 build_test_deploy :
448485 jobs :
449486 - build :
You can’t perform that action at this time.
0 commit comments