From 4d769f1bcba786df7f34340f21e1859c052d2dd8 Mon Sep 17 00:00:00 2001 From: Takuya Wakazono Date: Sun, 16 Mar 2025 00:51:04 +0900 Subject: [PATCH] .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 --- .github/workflows/emails.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/emails.yml b/.github/workflows/emails.yml index d7465dc7b4..09dfb8209b 100644 --- a/.github/workflows/emails.yml +++ b/.github/workflows/emails.yml @@ -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' }}