Skip to content
This repository was archived by the owner on Apr 7, 2025. It is now read-only.

Commit dcd4d72

Browse files
authored
Merge pull request #1011 from newrelic/liz/project-stats-bug
Attempt to use action without dist file
2 parents f9d90f3 + 6e822fa commit dcd4d72

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

.github/actions/sync-data/action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ inputs:
1010
description: 'true/false - determines whether to fetch and sync the project-stats data'
1111
runs:
1212
using: 'node16'
13-
main: 'dist/index.js'
13+
main: 'src/index.js'

.github/actions/sync-data/src/stats-generator/github/github-client.js

-6
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ const createOctokit = ({ org, accessToken, tokenType = 'token', cacheKey }) => {
7272
log.warn(
7373
`SecondaryRateLimit detected for request ${options.method} ${options.url}`
7474
);
75-
},
76-
onAbuseLimit: (retryAfter, options) => {
77-
// does not retry, only logs a warning
78-
log.warn(`Abuse detected for request ${options.method} ${options.url}`);
79-
log.json(options);
80-
return true;
8175
}
8276
},
8377
log: {

.github/workflows/project-stats.yml

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ jobs:
2222
fetch-depth: 0
2323
token: ${{ secrets.DEVEX_OPENSOURCE_BOT_TOKEN }}
2424

25+
- name: Install dependencies
26+
run: cd .github/actions/sync-data && npm install
27+
2528
- name: Sync Data
2629
uses: ./.github/actions/sync-data
2730
with:

0 commit comments

Comments
 (0)