commit:     4d769f1bcba786df7f34340f21e1859c052d2dd8
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Sat Mar 15 15:51:04 2025 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Sat Mar 15 18:14:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4d769f1b

.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 <AT> gmail.com>

 .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 d7465dc7b..09dfb8209 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' }}

Reply via email to