Skip to content

Commit 29c721f

Browse files
committed
Make owner, repo, and ref optional
1 parent 24855d4 commit 29c721f

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@ name: Workflow Dispatch Plus
33
inputs:
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: "{}"

workflow-dispatch/dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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");

workflow-dispatch/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)