Skip to content

Commit

Permalink
Merge pull request #1011 from newrelic/liz/project-stats-bug
Browse files Browse the repository at this point in the history
Attempt to use action without dist file
  • Loading branch information
LizBaker authored Jun 12, 2023
2 parents f9d90f3 + 6e822fa commit dcd4d72
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/actions/sync-data/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ inputs:
description: 'true/false - determines whether to fetch and sync the project-stats data'
runs:
using: 'node16'
main: 'dist/index.js'
main: 'src/index.js'
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ const createOctokit = ({ org, accessToken, tokenType = 'token', cacheKey }) => {
log.warn(
`SecondaryRateLimit detected for request ${options.method} ${options.url}`
);
},
onAbuseLimit: (retryAfter, options) => {
// does not retry, only logs a warning
log.warn(`Abuse detected for request ${options.method} ${options.url}`);
log.json(options);
return true;
}
},
log: {
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/project-stats.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
fetch-depth: 0
token: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}

- name: Install dependencies
run: cd .github/actions/sync-data && npm install

- name: Sync Data
uses: ./.github/actions/sync-data
with:
Expand Down

0 comments on commit dcd4d72

Please sign in to comment.