consolidate temp directory when generating openapi data (#35331)
This commit is contained in:
1
.github/workflows/openapi-decorate.yml
vendored
1
.github/workflows/openapi-decorate.yml
vendored
@@ -63,7 +63,6 @@ jobs:
|
||||
git status
|
||||
echo "Deleting the cloned github/rest-api-description repo..."
|
||||
rm -rf rest-api-description
|
||||
rm -rf openApiTemp
|
||||
|
||||
- name: Create pull request
|
||||
env:
|
||||
|
||||
5
.gitignore
vendored
5
.gitignore
vendored
@@ -32,4 +32,9 @@ user-code/
|
||||
# Logs from scripts
|
||||
script/logs/
|
||||
external-link-checker-db.json
|
||||
|
||||
# Automated content source
|
||||
rest-api-description
|
||||
|
||||
.installed.package-lock.json
|
||||
|
||||
|
||||
@@ -24,10 +24,10 @@ import { syncGitHubAppsData } from '../../github-apps/scripts/sync.js'
|
||||
import { syncRestRedirects } from './utils/get-redirects.js'
|
||||
|
||||
const __dirname = path.dirname(fileURLToPath(import.meta.url))
|
||||
const TEMP_OPENAPI_DIR = path.join(__dirname, '../../../openApiTemp')
|
||||
const TEMP_OPENAPI_DIR = path.join(__dirname, '../../../rest-api-description/openApiTemp')
|
||||
const TEMP_BUNDLED_OPENAPI_DIR = path.join(TEMP_OPENAPI_DIR, 'bundled')
|
||||
const GITHUB_REP_DIR = '../github'
|
||||
const REST_DESCRIPTION_DIR = path.join('rest-api-description/descriptions-next')
|
||||
const REST_DESCRIPTION_DIR = 'rest-api-description/descriptions-next'
|
||||
const VERSION_NAMES = JSON.parse(await readFile('src/rest/data/meta.json', 'utf8')).versionMapping
|
||||
|
||||
program
|
||||
|
||||
Reference in New Issue
Block a user