Skip to content

Commit

Permalink
feat: update token name
Browse files Browse the repository at this point in the history
  • Loading branch information
Chesire committed Apr 2, 2021
1 parent 092ae33 commit 601a0bf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/test-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
id: hello
with:
who-to-greet: '@Chesire'
okami-token: ${{ secrets.GITHUB_TOKEN }}
# Use the output from the `hello` step
- name: Get the output time
run: echo "The time was ${{ steps.hello.outputs.time }}"
3 changes: 3 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: 'Hello World'
description: 'Greet someone and record the time'
inputs:
okami-token:
description: 'The GITHUB_TOKEN secret'
required: true
who-to-greet: # id of input
description: 'Who to greet'
required: true
Expand Down
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ async function run() {
return;
}

const githubToken = core.getInput('GITHUB_TOKEN');
const octokit = github.getOctokit(githubToken);
// github.token ?
const token = core.getInput('okami-token');
const octokit = github.getOctokit(token);
const prNumber = context.payload.pull_request.number;

console.log(pullRequest);
Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ async function run() {
return;
}

const githubToken = core.getInput('GITHUB_TOKEN');
const octokit = github.getOctokit(githubToken);
// github.token ?
const token = core.getInput('okami-token');
const octokit = github.getOctokit(token);
const prNumber = context.payload.pull_request.number;

console.log(pullRequest);
Expand Down

0 comments on commit 601a0bf

Please sign in to comment.