Skip to content

Commit 3ac586c

Browse files
Revert "fix: input repository owner/repo (#13)"
This reverts commit 294ec99.
1 parent 294ec99 commit 3ac586c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

action.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ 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
106
runs:
117
using: "composite"
128
steps:
139
- shell: bash
1410
run: |
1511
gh extension install actions/gh-actions-cache
16-
defaultBranch=$(gh api repos/${ inputs.repository } --jq '.default_branch')
12+
defaultBranch=$(gh api repos/${ github.repository } --jq '.default_branch')
1713
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)