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 294ec99 commit 3ac586cCopy full SHA for 3ac586c
action.yml
@@ -3,15 +3,11 @@ 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
16
- defaultBranch=$(gh api repos/${ inputs.repository } --jq '.default_branch')
+ defaultBranch=$(gh api repos/${ github.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