We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88f7513 commit 294ec99Copy full SHA for 294ec99
action.yml
@@ -3,11 +3,15 @@ description: "Delete GitHub Actions cache"
3
branding:
4
icon: "delete"
5
color: "gray-dark"
6
+inputs:
7
+ repository:
8
+ description: "repository owner/repo"
9
+ required: true
10
runs:
11
using: "composite"
12
steps:
13
- shell: bash
14
run: |
15
gh extension install actions/gh-actions-cache
- defaultBranch=$(gh api repos/${ github.repository } --jq '.default_branch')
16
+ defaultBranch=$(gh api repos/${ inputs.repository } --jq '.default_branch')
17
gh actions-cache list --limit 100 | grep -v "refs/heads/${defaultBranch}" | cut -f 1 | xargs -I{} gh actions-cache delete --confirm {}
0 commit comments