Skip to content

Commit da2594c

Browse files
committed
include github.event_name in posted comment
1 parent acbabac commit da2594c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/actions/dataconnect-send-notifications/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ runs:
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 }}'

firebase-dataconnect/ci/post_comment_for_job_results.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)