mirror of
https://github.com/rife2/bld
synced 2026-06-21 03:37:47 +02:00
27 lines
715 B
YAML
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 }}" |