Skip to content

Commit

Permalink
refactor: repo-token input is clarified (#47)
Browse files Browse the repository at this point in the history
Signed-off-by: Mogyuchi <mogyuchi@mogyuchi.jp>
  • Loading branch information
Mogyuchi authored Feb 20, 2024
1 parent f79b011 commit d52ea2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ branding:
inputs:
repo-token:
description: 'The GitHub token used to manage repository action cache'
required: false
required: true
default: ${{ github.token }}

# Define your outputs here.
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const deleteRefActionsCaches = async (
*/
export async function run(): Promise<void> {
try {
const token = core.getInput('repo-token')
const token = core.getInput('repo-token', { required: true })
const octokit = github.getOctokit(token)

// get repostiory information
Expand Down

0 comments on commit d52ea2c

Please sign in to comment.