Skip to content

Commit

Permalink
test env
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Jul 27, 2024
1 parent 06b5fae commit a476fa9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test-pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ const getPullRequestChanges = async () => {
// myToken: ${{ secrets.GITHUB_TOKEN }}
// https://help.github.com/en/actions/automating-your-workflow-with-github-actions/authenticating-with-the-github_token#about-the-github_token-secret
const GITHUB_TOKEN = core.getInput('GITHUB_TOKEN');
console.log('GITHUB_TOKEN', GITHUB_TOKEN);
console.log('GITHUB_TOKEN', GITHUB_TOKEN, process.env.GITHUB_TOKEN);

const token = core.getInput('token');
console.log('token', token);
console.log('token', token, process.env.token);

const octokit = github.getOctokit(GITHUB_TOKEN || token);

Expand Down

0 comments on commit a476fa9

Please sign in to comment.