Skip to content

Commit

Permalink
CI: Fix master build deletion
Browse files Browse the repository at this point in the history
Some things likely changed and made it not work anymore.

Also seems that the macOS runner is now ARM64.
  • Loading branch information
essen committed Nov 8, 2024
1 parent 6cfe0d1 commit baf3b75
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,19 @@ on:
## Every Monday at 2am.
- cron: 0 2 * * 1

env:
CI_ERLANG_MK: 1

jobs:
cleanup-master:
name: Cleanup master build
runs-on: ubuntu-latest
permissions:
actions: write
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 || true
gh actions-cache delete macOS-X64-Erlang-master -R $REPO --confirm || true
gh cache delete Linux-X64-Erlang-master -R $REPO || true
gh cache delete macOS-ARM64-Erlang-master -R $REPO || true
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPO: ${{ github.repository }}
Expand Down

0 comments on commit baf3b75

Please sign in to comment.