1
0
mirror of synced 2026-01-05 21:04:17 -05:00

Use retrying Octokit to for GraphQL sync (#47656)

This commit is contained in:
Peter Bengtsson
2023-12-12 09:07:59 -05:00
committed by GitHub
parent a687a2fe03
commit d48ad66dcb
5 changed files with 36 additions and 19 deletions

View File

@@ -11,11 +11,9 @@ import processUpcomingChanges from './utils/process-upcoming-changes.js'
import processSchemas from './utils/process-schemas.js'
import { prependDatedEntry, createChangelogEntry } from './build-changelog.js'
const graphqlDataDir = path.join(process.cwd(), 'data/graphql')
const graphqlStaticDir = path.join(process.cwd(), 'src/graphql/data')
const dataFilenames = JSON.parse(
await fs.readFile(path.join(process.cwd(), './src/graphql/scripts/utils/data-filenames.json')),
)
const graphqlDataDir = 'data/graphql'
const graphqlStaticDir = 'src/graphql/data'
const dataFilenames = JSON.parse(await fs.readFile('src/graphql/scripts/utils/data-filenames.json'))
// check for required PAT
if (!process.env.GITHUB_TOKEN) {