File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ name: Workflow Dispatch Plus
33inputs :
44 repo :
55 description : Repository name
6- required : true
76 owner :
87 description : Owner name
9- required : true
108 token :
119 description :
1210 Personal access token, see
@@ -16,7 +14,6 @@ inputs:
1614 description : Workflow file path
1715 ref :
1816 description : Ref
19- required : true
2017 inputs :
2118 description : JSON object of inputs
2219 default : " {}"
Original file line number Diff line number Diff line change @@ -29741,7 +29741,7 @@ async function main() {
2974129741 const repo = coreExports.getInput("repo") || context.repo.repo;
2974229742 const token = coreExports.getInput("token", { required: true });
2974329743 const workflow = coreExports.getInput("workflow", { required: true });
29744- const ref = coreExports.getInput("ref", { required: true }) ;
29744+ const ref = coreExports.getInput("ref") || context.ref ;
2974529745 const inputs = getJsonInput("inputs");
2974629746 const upstreamInputName = coreExports.getInput("upstream-input-name");
2974729747 const wait = coreExports.getBooleanInput("wait");
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ async function main() {
2121 const repo = getInput ( "repo" ) || context . repo . repo ;
2222 const token = getInput ( "token" , { required : true } ) ;
2323 const workflow = getInput ( "workflow" , { required : true } ) ;
24- const ref = getInput ( "ref" , { required : true } ) ;
24+ const ref = getInput ( "ref" ) || context . ref ;
2525 const inputs = getJsonInput ( "inputs" ) ;
2626 const upstreamInputName = getInput ( "upstream-input-name" ) ;
2727 const wait = getBooleanInput ( "wait" ) ;
You can’t perform that action at this time.
0 commit comments