Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

chore(deps-dev): bump eslint-plugin-vue from 9.29.0 to 9.31.0 #31

chore(deps-dev): bump eslint-plugin-vue from 9.29.0 to 9.31.0

chore(deps-dev): bump eslint-plugin-vue from 9.29.0 to 9.31.0 #31

Workflow file for this run

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 }}