Commit 9ec5cf1aac for ffmpeg

commit 9ec5cf1aac6ac402df6934cc3bcd825c4cfe1220
Author: Timo Rothenpieler <timo@rothenpieler.org>
Date:   Mon Nov 23 13:48:26 2026 +0100

    forgejo/workflows: don't write fate-suite cache from PRs

    The runners save PR-Caches per-PR, as to avoid cache poisoning attacks.
    But this also means that whenever new fate samples get uploaded,
    and master has not yet run a build on that runner, each runner saves one full
    copy of the fate suite per PR, quickly exhausting their disk space.

    With both the huge influx of PRs, and of new fate samples being uploaded,
    this has lead to a quick exhaustion of runner disk space.

diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml
index 5e6fd75a8c..295697065e 100644
--- a/.forgejo/workflows/test.yml
+++ b/.forgejo/workflows/test.yml
@@ -59,7 +59,7 @@ jobs:
           echo "hash=$(find fate-suite -type f -printf "%P %s %T@\n" | sort | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT
       - name: Cache Fate-Suite
         uses: actions/cache/save@v5
-        if: ${{ format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }}
+        if: ${{ forge.event_name != 'pull_request' && format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }}
         with:
           path: fate-suite
           key: fate-suite-${{ steps.fate.outputs.hash }}
@@ -143,7 +143,7 @@ jobs:
           echo "hash=$(find fate-suite -type f -printf "%P %s %T@\n" | sort | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT
       - name: Cache Fate-Suite
         uses: actions/cache/save@v5
-        if: ${{ format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }}
+        if: ${{ forge.event_name != 'pull_request' && format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }}
         with:
           path: fate-suite
           key: fate-suite-${{ steps.fate.outputs.hash }}