]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Upgrade rsi-diff's changed files action | Make it only return rsi and png changes...
authorVasilis <vasilis@pikachu.systems>
Wed, 19 Jun 2024 00:27:12 +0000 (03:27 +0300)
committerGitHub <noreply@github.com>
Wed, 19 Jun 2024 00:27:12 +0000 (10:27 +1000)
It was brought up to me in https://github.com/space-wizards/space-station-14/pull/29179#issuecomment-2177140740 (and from a dm from them) that space bars can cause issues with the rsi bot.

Upon investigation its case we use "space-delimited" on the "get changes files" check. Which returns ALL changed files. Even if the change has nothing to do with png's or rsi's (example a downstream merging upstream)

.github/workflows/rsi-diff.yml

index 1f122526d738a237a0b7516f753477e7da1beedb..98cc97e9221d7c4ab893331d6039ecb40c72f3d6 100644 (file)
@@ -15,9 +15,12 @@ jobs:
 
       - name: Get changed files
         id: files
-        uses: Ana06/get-changed-files@v1.2
+        uses: Ana06/get-changed-files@v2.3.0
         with:
           format: 'space-delimited'
+          filter: | 
+            **.rsi
+            **.png
 
       - name: Diff changed RSIs
         id: diff