@@ -328,7 +328,7 @@ jobs:
328
328
run : pyright --warnings --stats
329
329
330
330
send-notifications :
331
- needs :
331
+ needs :
332
332
- ' integration-test'
333
333
- ' actionlint-dataconnect-yml'
334
334
- ' python-ci-unit-tests'
@@ -349,48 +349,54 @@ jobs:
349
349
with :
350
350
python-version : ${{ env.FDC_PYTHON_VERSION }}
351
351
352
- - run : pip install -r firebase-dataconnect/ci/requirements.txt
352
+ - run : pip install -r requirements.txt
353
+ working-directory : firebase-dataconnect/ci
353
354
354
355
- id : issue-id
355
356
name : Determine GitHub Issue For Commenting
357
+ working-directory : firebase-dataconnect/ci
356
358
env :
357
359
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
358
360
run : |
359
- set -euo pipefail
360
- set -xv
361
-
362
- python \
363
- firebase-dataconnect/ci/calculate_github_issue_for_commenting.py \
364
- --output-file=github_issue_number.txt \
365
- --github-repository='${{ github.repository }}' \
366
- --github-ref='${{ github.ref }}' \
367
- --github-event-name='${{ github.event_name }}' \
368
- --pr-body-github-issue-key=trksmnkncd_notification_issue \
361
+ args=(
362
+ python
363
+ calculate_github_issue_for_commenting.py
364
+ --output-file=github_issue_number.txt
365
+ --github-repository='${{ github.repository }}'
366
+ --github-ref='${{ github.ref }}'
367
+ --github-event-name='${{ github.event_name }}'
368
+ --pr-body-github-issue-key=trksmnkncd_notification_issue
369
369
--github-issue-for-scheduled-run=6857 # https://github.com/firebase/firebase-android-sdk/issues/6857
370
+ )
371
+ echo "${args[*]}"
372
+ "${args[@]}"
370
373
374
+ set -xv
371
375
issue="$(cat github_issue_number.txt)"
372
376
echo "issue=$issue" >> "$GITHUB_OUTPUT"
373
377
374
378
- name : Post Comment on GitHub Issue
375
379
if : steps.issue-id.outputs.issue != ''
380
+ working-directory : firebase-dataconnect/ci
376
381
env :
377
382
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
378
383
run : |
379
- set -euo pipefail
380
- set -xv
381
-
382
- exec python \
383
- firebase-dataconnect/ci/post_comment_for_job_results.py \
384
- --github-issue='${{ steps.issue-id.outputs.issue }}' \
385
- --github-repository='${{ github.repository }}' \
386
- --github-sha='${{ github.sha }}' \
387
- --github-repository-html-url='${{ github.event.repository.html_url }}' \
388
- --github-run-id='${{ github.run_id }}' \
389
- --github-run-number='${{ github.run_number }}' \
390
- --github-run-attempt='${{ github.run_attempt }}' \
391
- 'integration-test:${{ needs.integration-test.result }}' \
392
- 'actionlint-dataconnect-yml:${{ needs.actionlint-dataconnect-yml.result }}' \
393
- 'python-ci-unit-tests:${{ needs.python-ci-unit-tests.result }}' \
394
- 'python-ci-lint:${{ needs.python-ci-lint.result }}' \
395
- 'python-ci-format:${{ needs.python-ci-format.result }}' \
396
- 'python-ci-type-check:${{ needs.python-ci-type-check.result }}' \
384
+ args=(
385
+ python
386
+ post_comment_for_job_results.py
387
+ --github-issue='${{ steps.issue-id.outputs.issue }}'
388
+ --github-repository='${{ github.repository }}'
389
+ --github-sha='${{ github.sha }}'
390
+ --github-repository-html-url='${{ github.event.repository.html_url }}'
391
+ --github-run-id='${{ github.run_id }}'
392
+ --github-run-number='${{ github.run_number }}'
393
+ --github-run-attempt='${{ github.run_attempt }}'
394
+ 'integration-test:${{ needs.integration-test.result }}'
395
+ 'actionlint-dataconnect-yml:${{ needs.actionlint-dataconnect-yml.result }}'
396
+ 'python-ci-unit-tests:${{ needs.python-ci-unit-tests.result }}'
397
+ 'python-ci-lint:${{ needs.python-ci-lint.result }}'
398
+ 'python-ci-format:${{ needs.python-ci-format.result }}'
399
+ 'python-ci-type-check:${{ needs.python-ci-type-check.result }}'
400
+ )
401
+ echo "${args[*]}"
402
+ exec "${args[@]}"
0 commit comments