1111jobs :
1212 status :
1313 runs-on : ubuntu-latest
14+ permissions :
15+ actions : write # needed to delete and re-save caches
1416
1517 steps :
1618 - uses : actions/checkout@v4
@@ -24,16 +26,50 @@ jobs:
2426 - name : Restore pombast cache
2527 uses : actions/cache/restore@v4
2628 with :
27- path : ~/.cache/pombast/pom-timestamps
28- restore-keys : ${{ runner.os }}-pombast-status-
29+ path : ~/.cache/pombast
30+ key : ${{ runner.os }}-pombast-status
31+ restore-keys : ${{ runner.os }}-pombast-cache
2932
30- - name : Generate and publish status page
33+ - name : Restore monoqueue cache
34+ uses : actions/cache/restore@v4
35+ with :
36+ path : ~/.cache/monoqueue
37+ key : ${{ runner.os }}-monoqueue-status
38+
39+ - name : Generate and publish status and team pages
3140 run : .github/status.sh
3241 shell : bash
42+ env :
43+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
44+
45+ - name : Delete old pombast status cache
46+ if : always()
47+ run : |
48+ gh api --method DELETE \
49+ -H "Accept: application/vnd.github+json" \
50+ "/repos/scijava/pom-scijava/actions/caches?key=${{ runner.os }}-pombast-status" || true
51+ env :
52+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3353
3454 - name : Save pombast cache
3555 if : always()
3656 uses : actions/cache/save@v4
3757 with :
38- path : ~/.cache/pombast/pom-timestamps
39- key : ${{ runner.os }}-pombast-status-${{ github.run_id }}
58+ path : ~/.cache/pombast
59+ key : ${{ runner.os }}-pombast-status
60+
61+ - name : Delete old monoqueue cache
62+ if : always()
63+ run : |
64+ gh api --method DELETE \
65+ -H "Accept: application/vnd.github+json" \
66+ "/repos/scijava/pom-scijava/actions/caches?key=${{ runner.os }}-monoqueue-status" || true
67+ env :
68+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69+
70+ - name : Save monoqueue cache
71+ if : always()
72+ uses : actions/cache/save@v4
73+ with :
74+ path : ~/.cache/monoqueue
75+ key : ${{ runner.os }}-monoqueue-status
0 commit comments