Skip to content

Commit

Permalink
Delete the master cache on cron
Browse files Browse the repository at this point in the history
  • Loading branch information
essen committed Dec 18, 2023
1 parent 0624174 commit 3de5463
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,22 @@ on:
- cron: 0 4 * * 1

jobs:
cleanup-master:
name: Cleanup master build
runs-on: ubuntu-latest
steps:

- name: Cleanup master build if necessary
if: ${{ github.event_name == 'schedule' }}
run: |
gh extension install actions/gh-actions-cache
gh actions-cache delete Linux-X64-Erlang-master -R $REPO --confirm
gh actions-cache delete macOS-X64-Erlang-master -R $REPO --confirm
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}

check:
name: Ranch
needs: cleanup-master
uses: ninenines/ci.erlang.mk/.github/workflows/ci.yaml@master

0 comments on commit 3de5463

Please sign in to comment.