36 lines
862 B
YAML
36 lines
862 B
YAML
name: Gitea Runner Cache Test
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: https://git.drajon.cz/actions/checkout@v4
|
|
|
|
- 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 "=== CACHE BEFORE ==="
|
|
if [ -f ~/.cache/gitea-test/value.txt ]; then
|
|
cat ~/.cache/gitea-test/value.txt
|
|
else
|
|
echo "Cache is empty"
|
|
fi
|
|
|
|
- name: Create cache content
|
|
run: |
|
|
mkdir -p ~/.cache/gitea-test
|
|
echo "Created at $(date -u)" > ~/.cache/gitea-test/value.txt
|
|
|
|
echo "=== CACHE AFTER ==="
|
|
cat ~/.cache/gitea-test/value.txt |