forked from APACGAMONDE/Gift-Card-Trade-in
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgh-workflow-run.1
91 lines (63 loc) · 1.84 KB
/
gh-workflow-run.1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
.nh
.TH "gh" "1" "Jun 2021" "" ""
.SH NAME
.PP
gh\-workflow\-run \- Run a workflow by creating a workflow\_dispatch event
.SH SYNOPSIS
.PP
\fBgh workflow run [ | ] [flags]\fP
.SH DESCRIPTION
.PP
Create a workflow\_dispatch event for a given workflow.
.PP
This command will trigger GitHub Actions to run a given workflow file. The given workflow file must
support a workflow\_dispatch 'on' trigger in order to be run in this way.
.PP
If the workflow file supports inputs, they can be specified in a few ways:
.RS
.IP \(bu 2
Interactively
.IP \(bu 2
via \-f or \-F flags
.IP \(bu 2
As JSON, via STDIN
.RE
.SH OPTIONS
.PP
\fB\-F\fP, \fB\-\-field\fP=[]
Add a string parameter in \fB\fCkey=value\fR format, respecting @ syntax
.PP
\fB\-\-json\fP[=false]
Read workflow inputs as JSON via STDIN
.PP
\fB\-f\fP, \fB\-\-raw\-field\fP=[]
Add a string parameter in \fB\fCkey=value\fR format
.PP
\fB\-r\fP, \fB\-\-ref\fP=""
The branch or tag name which contains the version of the workflow file you'd like to run
.SH OPTIONS INHERITED FROM PARENT COMMANDS
.PP
\fB\-\-help\fP[=false]
Show help for command
.PP
\fB\-R\fP, \fB\-\-repo\fP=""
Select another repository using the \fB\fC[HOST/]OWNER/REPO\fR format
.SH EXAMPLE
.PP
.RS
.nf
# Have gh prompt you for what workflow you'd like to run and interactively collect inputs
$ gh workflow run
# Run the workflow file 'triage.yml' at the remote's default branch
$ gh workflow run triage.yml
# Run the workflow file 'triage.yml' at a specified ref
$ gh workflow run triage.yml \-\-ref my\-branch
# Run the workflow file 'triage.yml' with command line inputs
$ gh workflow run triage.yml \-f name=scully \-f greeting=hello
# Run the workflow file 'triage.yml' with JSON via standard input
$ echo '{"name":"scully", "greeting":"hello"}' | gh workflow run triage.yml \-\-json
.fi
.RE
.SH SEE ALSO
.PP
\fBgh\-workflow(1)\fP