mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-03 08:32:56 +08:00
Minor readme clarification
This commit is contained in:
parent
d4340966b7
commit
c65fe87e33
@ -17,7 +17,7 @@ async function run() {
|
|||||||
// https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#about-the-github_token-secret
|
// https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#about-the-github_token-secret
|
||||||
const myToken = core.getInput('myToken');
|
const myToken = core.getInput('myToken');
|
||||||
|
|
||||||
const octokit = github.getOctokit(token)
|
const octokit = github.getOctokit(myToken)
|
||||||
|
|
||||||
// You can also pass in additional options as a second parameter to getOctokit
|
// You can also pass in additional options as a second parameter to getOctokit
|
||||||
// const octokit = github.getOctokit(myToken, {userAgent: "MyActionVersion1"});
|
// const octokit = github.getOctokit(myToken, {userAgent: "MyActionVersion1"});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user