Skip to content

Commit 41c1500

Browse files
committed
update workflow files for new command-line args
1 parent 5211fdf commit 41c1500

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/dataconnect.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ jobs:
361361
args=(
362362
python
363363
calculate_github_issue_for_commenting.py
364-
--output-file=github_issue_number.txt
364+
--issue-output-file=github_issue_number.txt
365+
--pr-output-file=github_pr_number.txt
365366
--github-repository='${{ github.repository }}'
366367
--github-ref='${{ github.ref }}'
367368
--github-event-name='${{ github.event_name }}'
@@ -374,6 +375,8 @@ jobs:
374375
set -xv
375376
issue="$(cat github_issue_number.txt)"
376377
echo "issue=$issue" >> "$GITHUB_OUTPUT"
378+
pr="$(cat github_pr_number.txt)"
379+
echo "pr=$pr" >> "$GITHUB_OUTPUT"
377380
378381
- name: Post Comment on GitHub Issue
379382
if: steps.issue-id.outputs.issue != ''
@@ -385,12 +388,14 @@ jobs:
385388
python
386389
post_comment_for_job_results.py
387390
--github-issue='${{ steps.issue-id.outputs.issue }}'
391+
--github-workflow='${{ github.workflow }}'
388392
--github-repository='${{ github.repository }}'
389393
--github-sha='${{ github.sha }}'
390394
--github-repository-html-url='${{ github.event.repository.html_url }}'
391395
--github-run-id='${{ github.run_id }}'
392396
--github-run-number='${{ github.run_number }}'
393397
--github-run-attempt='${{ github.run_attempt }}'
398+
--triggering-pr='${{ steps.issue-id.outputs.pr }}'
394399
'integration-test:${{ needs.integration-test.result }}'
395400
'actionlint-dataconnect-yml:${{ needs.actionlint-dataconnect-yml.result }}'
396401
'python-ci-unit-tests:${{ needs.python-ci-unit-tests.result }}'

.github/workflows/dataconnect_demo_app.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,8 @@ jobs:
200200
args=(
201201
python
202202
calculate_github_issue_for_commenting.py
203-
--output-file=github_issue_number.txt
203+
--issue-output-file=github_issue_number.txt
204+
--pr-output-file=github_pr_number.txt
204205
--github-repository='${{ github.repository }}'
205206
--github-ref='${{ github.ref }}'
206207
--github-event-name='${{ github.event_name }}'
@@ -213,6 +214,8 @@ jobs:
213214
set -xv
214215
issue="$(cat github_issue_number.txt)"
215216
echo "issue=$issue" >> "$GITHUB_OUTPUT"
217+
pr="$(cat github_pr_number.txt)"
218+
echo "pr=$pr" >> "$GITHUB_OUTPUT"
216219
217220
- name: Post Comment on GitHub Issue
218221
if: steps.issue-id.outputs.issue != ''
@@ -224,12 +227,14 @@ jobs:
224227
python
225228
post_comment_for_job_results.py
226229
--github-issue='${{ steps.issue-id.outputs.issue }}'
230+
--github-workflow='${{ github.workflow }}'
227231
--github-repository='${{ github.repository }}'
228232
--github-sha='${{ github.sha }}'
229233
--github-repository-html-url='${{ github.event.repository.html_url }}'
230234
--github-run-id='${{ github.run_id }}'
231235
--github-run-number='${{ github.run_number }}'
232236
--github-run-attempt='${{ github.run_attempt }}'
237+
--triggering-pr='${{ steps.issue-id.outputs.pr }}'
233238
'test:${{ needs.test.result }}'
234239
'spotlessCheck:${{ needs.spotlessCheck.result }}'
235240
)

0 commit comments

Comments
 (0)