Skip to content

Commit 294ec99

Browse files
fix: input repository owner/repo (#13)
1 parent 88f7513 commit 294ec99

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

action.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,15 @@ description: "Delete GitHub Actions cache"
33
branding:
44
icon: "delete"
55
color: "gray-dark"
6+
inputs:
7+
repository:
8+
description: "repository owner/repo"
9+
required: true
610
runs:
711
using: "composite"
812
steps:
913
- shell: bash
1014
run: |
1115
gh extension install actions/gh-actions-cache
12-
defaultBranch=$(gh api repos/${ github.repository } --jq '.default_branch')
16+
defaultBranch=$(gh api repos/${ inputs.repository } --jq '.default_branch')
1317
gh actions-cache list --limit 100 | grep -v "refs/heads/${defaultBranch}" | cut -f 1 | xargs -I{} gh actions-cache delete --confirm {}

0 commit comments

Comments
 (0)