MINOR: Add links test catalog commits (#17650)

Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
This commit is contained in:
David Arthur 2024-10-31 12:53:02 -04:00 committed by GitHub
parent 7c536c9643
commit dd432c0ca1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 7 additions and 1 deletions

View File

@ -215,11 +215,17 @@ jobs:
path: test-catalog path: test-catalog
- name: Push Test Catalog - name: Push Test Catalog
# Git user.name and user.email come from https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-using-the-built-in-token # Git user.name and user.email come from https://github.com/actions/checkout?tab=readme-ov-file#push-a-commit-using-the-built-in-token
env:
COMMIT_MSG: |
Update test catalog data for GHA workflow run ${{ github.run_id }}
Commit: https://github.com/apache/kafka/commit/${{ github.sha }}
GitHub Run: https://github.com/apache/kafka/actions/runs/${{ github.run_id }}
run: | run: |
pwd pwd
ls -R ls -R
git config user.name 'github-actions[bot]' git config user.name 'github-actions[bot]'
git config user.email '41898282+github-actions[bot]@users.noreply.github.com' git config user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add test-catalog git add test-catalog
git diff --quiet && git diff --staged --quiet || git commit -m 'Update test catalog data for GHA workflow run ${{ github.run_id }}' git diff --quiet && git diff --staged --quiet || git commit -m "$COMMIT_MSG"
git push git push