Skip to content

Commit

Permalink
refactor: repo-token input is clarified
Browse files Browse the repository at this point in the history
Signed-off-by: Mogyuchi <[email protected]>
  • Loading branch information
Mogyuchi committed Feb 20, 2024
1 parent b344f5d commit 9233ca7
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 9233ca7

Please sign in to comment.