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 5555 --github-workflow='${{ github.workflow }}'
5656 --github-repository='${{ github.repository }}'
5757 --github-ref='${{ github.ref }}'
58+ --github-event-name='${{ github.event_name }}'
5859 --github-sha='${{ github.sha }}'
5960 --github-repository-html-url='${{ github.event.repository.html_url }}'
6061 --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]:
8080
8181 yield ""
8282 yield (
83+ f"event_name=`{ data .github_event_name } ` "
8384 f"run_id=`{ data .github_run_id } ` "
8485 f"run_number=`{ data .github_run_number } ` "
8586 f"run_attempt=`{ data .github_run_attempt } `"
@@ -133,6 +134,7 @@ class ParsedArgs(typing.Protocol):
133134 job_results : Sequence [JobResult ]
134135 github_issue : int
135136 github_repository : str
137+ github_event_name : str
136138 github_ref : str
137139 github_workflow : str
138140 github_sha : str
@@ -166,6 +168,11 @@ def parse_args() -> ParsedArgs:
166168 required = True ,
167169 help = "The value of ${{ github.repository }} in the workflow" ,
168170 )
171+ arg_parser .add_argument (
172+ "--github-event-name" ,
173+ required = True ,
174+ help = "The value of ${{ github.event_name }} in the workflow" ,
175+ )
169176 arg_parser .add_argument (
170177 "--github-ref" ,
171178 required = True ,
You can’t perform that action at this time.
0 commit comments