0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00

CI: Fix master build deletion

Some things likely changed and made it not work anymore.

Also seems that the macOS runner is now ARM64.
This commit is contained in:
Loïc Hoguin 2024-11-07 14:32:49 +01:00
parent 9f0f2a89d7
commit b1cb95fe74
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764

View file

@ -18,14 +18,15 @@ jobs:
cleanup-master: cleanup-master:
name: Cleanup master build name: Cleanup master build
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
actions: write
steps: steps:
- name: Cleanup master build if necessary - name: Cleanup master build if necessary
if: ${{ github.event_name == 'schedule' }} if: ${{ github.event_name == 'schedule' }}
run: | run: |
gh extension install actions/gh-actions-cache gh cache delete Linux-X64-Erlang-master -R $REPO || true
gh actions-cache delete Linux-X64-Erlang-master -R $REPO --confirm || true gh cache delete macOS-ARM64-Erlang-master -R $REPO || true
gh actions-cache delete macOS-X64-Erlang-master -R $REPO --confirm || true
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }} REPO: ${{ github.repository }}