mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 09:03:57 -07:00
31 lines
784 B
YAML
31 lines
784 B
YAML
# Reports total GitHub Actions cache usage for BuildKit blob caches (used by docker-release).
|
|
# Run locally: .ci/gh_buildkit_cache_usage.sh
|
|
|
|
name: Cache usage report
|
|
|
|
on:
|
|
push:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
report:
|
|
name: buildkit-blob cache usage
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
actions: read
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Install jq
|
|
run: sudo apt-get update && sudo apt-get install -y jq
|
|
|
|
- name: Report cache usage
|
|
id: cache_report
|
|
run: |
|
|
./.ci/gh_buildkit_cache_usage.sh | tee report.txt
|
|
echo "summary<<EOF" >> "$GITHUB_STEP_SUMMARY"
|
|
cat report.txt >> "$GITHUB_STEP_SUMMARY"
|
|
echo "EOF" >> "$GITHUB_STEP_SUMMARY"
|