From ad087e8eeca48892ed31ab6f9797383ebebbce31 Mon Sep 17 00:00:00 2001 From: honza Date: Tue, 18 Aug 2026 23:44:07 +0200 Subject: [PATCH] Aktualizovat .gitea/workflows/test.yml --- .gitea/workflows/test.yml | 43 ++++++++++++++++++--------------------- 1 file changed, 20 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 193c3ae..6f7648d 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -1,4 +1,4 @@ -name: Gitea Runner Test +name: Gitea Runner Cache Test on: push: @@ -12,28 +12,25 @@ jobs: - name: Checkout repository uses: https://git.drajon.cz/actions/checkout@v4 - - name: Verify checkout + - name: Restore test cache + uses: https://git.drajon.cz/actions/cache@v4 + with: + path: ~/.cache/gitea-test + key: gitea-test-v1 + + - name: Inspect cache run: | - echo "=================================" - echo " LOCAL CHECKOUT TEST" - echo "=================================" + echo "=== CACHE BEFORE ===" + if [ -f ~/.cache/gitea-test/value.txt ]; then + cat ~/.cache/gitea-test/value.txt + else + echo "Cache is empty" + fi - echo - echo "Working directory:" - pwd + - name: Create cache content + run: | + mkdir -p ~/.cache/gitea-test + echo "Created at $(date -u)" > ~/.cache/gitea-test/value.txt - echo - echo "Files:" - ls -la - - echo - echo "Git status:" - git status - - echo - echo "Latest commit:" - git log -1 --oneline - - echo - echo "Remote repository:" - git remote -v \ No newline at end of file + echo "=== CACHE AFTER ===" + cat ~/.cache/gitea-test/value.txt \ No newline at end of file