.github/workflows: replace changed-files action with git-diff

tj-actions/changed-files repo was compromised and has been removed.

Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2025-03-16 00:51:04 +09:00
parent 46f18b6135
commit 4d769f1bcb
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61

View File

@ -40,17 +40,13 @@ jobs:
- name: Get changed files
if: ${{ fromJSON(env.is_commit_valid) }}
uses: tj-actions/changed-files@v44
with:
base_sha: ${{ env.last_successful_commit }}
write_output_files: true
files: |
**/metadata.xml
run: |
git diff --diff-filter d --name-only ${last_successful_commit} -- '*/metadata.xml' | tr '\n' ' ' | tee all_changed_files.txt
- name: Check emails against Bugzilla
if: ${{ fromJSON(env.is_commit_valid) }}
run: |
python ./scripts/email-checker.py < .github/outputs/all_changed_files.txt
python ./scripts/email-checker.py < all_changed_files.txt
- name: Inform on IRC
if: ${{ failure() && github.repository == 'gentoo/guru' && github.event_name == 'push' }}