This repository has been archived by the owner on Nov 25, 2024. It is now read-only.
chore(deps-dev): bump electron from 32.2.0 to 33.0.1 #12
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cleanup cache | |
on: | |
pull_request: | |
types: | |
- closed | |
workflow_dispatch: | |
inputs: | |
branch: | |
description: 'Branch ref to delete caches for' | |
required: true | |
type: string | |
jobs: | |
cleanup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Cleanup cache | |
run: | | |
gh extension install actions/gh-actions-cache | |
REPO=${{ github.server_url }}/${{ github.repository }} | |
REF=${{ github.event.pull_request.number }} | |
BRANCH=${{ inputs.branch || 'refs/pull/$REF/merge' }} | |
echo "Fetching list of cache key" | |
echo $BRANCH | |
cacheKeysForPR=$(gh actions-cache list -R $REPO -B $BRANCH | cut -f 1 ) | |
echo $cacheKeysForPR | |
## Setting this to not fail the workflow while deleting cache keys. | |
set +e | |
echo "Deleting caches..." | |
for cacheKey in $cacheKeysForPR | |
do | |
gh actions-cache delete $cacheKey -R $REPO -B $BRANCH --confirm | |
done | |
echo "Done" | |
env: | |
GH_TOKEN: ${{ github.token }} |