File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed
.github/actions/dataconnect-send-notifications Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 55
55
--github-workflow='${{ github.workflow }}'
56
56
--github-repository='${{ github.repository }}'
57
57
--github-ref='${{ github.ref }}'
58
+ --github-event-name='${{ github.event_name }}'
58
59
--github-sha='${{ github.sha }}'
59
60
--github-repository-html-url='${{ github.event.repository.html_url }}'
60
61
--github-run-id='${{ github.run_id }}'
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ def generate_message_lines(data: ParsedArgs) -> Iterable[str]:
80
80
81
81
yield ""
82
82
yield (
83
+ f"event_name=`{ data .github_event_name } ` "
83
84
f"run_id=`{ data .github_run_id } ` "
84
85
f"run_number=`{ data .github_run_number } ` "
85
86
f"run_attempt=`{ data .github_run_attempt } `"
@@ -133,6 +134,7 @@ class ParsedArgs(typing.Protocol):
133
134
job_results : Sequence [JobResult ]
134
135
github_issue : int
135
136
github_repository : str
137
+ github_event_name : str
136
138
github_ref : str
137
139
github_workflow : str
138
140
github_sha : str
@@ -166,6 +168,11 @@ def parse_args() -> ParsedArgs:
166
168
required = True ,
167
169
help = "The value of ${{ github.repository }} in the workflow" ,
168
170
)
171
+ arg_parser .add_argument (
172
+ "--github-event-name" ,
173
+ required = True ,
174
+ help = "The value of ${{ github.event_name }} in the workflow" ,
175
+ )
169
176
arg_parser .add_argument (
170
177
"--github-ref" ,
171
178
required = True ,
You can’t perform that action at this time.
0 commit comments