Skip to content

Commit

Permalink
[contributors-action] altera o nome do token
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzren committed Oct 11, 2023
1 parent 0edf613 commit 8938cef
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/actions/contributors-json/action.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 'Contributors JSON'
description: 'Generates JSON with contributors per repository'
inputs:
PRIVATE_TOKEN:
TOKEN:
description: "GitHub token to authenticate requests"
required: true
runs:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/contributors-json/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { HttpClient } = require('@actions/http-client');
const { URLSearchParams } = require('url');

const doGet = async (url) => {
const token = core.getInput("PRIVATE_TOKEN");
const token = core.getInput("TOKEN");
if (!token) {
console.warn("NO TOKEN CONFIGURED");
}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/contributors-json.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- run: yarn add @actions/core @actions/http-client
- uses: ./.github/actions/contributors-json
with:
PRIVATE_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TOKEN: ${{ secrets.TOKEN }}
- uses: actions/upload-artifact@v3
with:
name: contributors-json
Expand Down

0 comments on commit 8938cef

Please sign in to comment.