Skip to content

Commit 280d7e3

Browse files
fix: load GH_TOKEN env vars to use GitHub CLI (#6)
1 parent 2ef1096 commit 280d7e3

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

.github/workflows/cache.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- uses: ./
18-
with:
19-
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
env:
19+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v3
1818
- uses: mokmok-dev/delete-actions-cache@main
19-
with:
20-
github-token: ${{ secrets.GITHUB_TOKEN }}
19+
env:
20+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2121
```
2222
2323

action.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
name: "Delete GitHub Actions cache"
22
description: "Delete GitHub Actions cache"
3-
inputs:
4-
github-token:
5-
description: GitHub token
6-
default: ${{ github.token }}
7-
required: false
83
runs:
94
using: "composite"
105
steps:

0 commit comments

Comments
 (0)