bld/.github/workflows/purge-cache.yml
2026-05-29 16:04:14 -07:00

27 lines
715 B
YAML

name: purge-cache
on:
workflow_dispatch:
inputs:
confirm:
description: 'Type "yes" to confirm purging all bld caches'
required: true
default: 'no'
jobs:
clear-cache:
if: github.event.inputs.confirm == 'yes'
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
permissions:
actions: write
steps:
- name: Purge bld caches for ${{ runner.os }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "Purging all caches with key ${{ runner.os }}-bld-"
gh cache delete --all --key "${{ runner.os }}-bld-"
echo "Done for ${{ runner.os }}"