Skip to content

Commit fa84be7

Browse files
authored
consolidate temp directory when generating openapi data (github#35331)
1 parent 70a3b81 commit fa84be7

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎.github/workflows/openapi-decorate.yml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ jobs:
6363
git status
6464
echo "Deleting the cloned github/rest-api-description repo..."
6565
rm -rf rest-api-description
66-
rm -rf openApiTemp
6766
6867
- name: Create pull request
6968
env:

‎.gitignore‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,9 @@ user-code/
3232
# Logs from scripts
3333
script/logs/
3434
external-link-checker-db.json
35+
36+
# Automated content source
37+
rest-api-description
38+
3539
.installed.package-lock.json
40+

‎src/rest/scripts/update-files.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ import { syncGitHubAppsData } from '../../github-apps/scripts/sync.js'
2424
import { syncRestRedirects } from './utils/get-redirects.js'
2525

2626
const __dirname = path.dirname(fileURLToPath(import.meta.url))
27-
const TEMP_OPENAPI_DIR = path.join(__dirname, '../../../openApiTemp')
27+
const TEMP_OPENAPI_DIR = path.join(__dirname, '../../../rest-api-description/openApiTemp')
2828
const TEMP_BUNDLED_OPENAPI_DIR = path.join(TEMP_OPENAPI_DIR, 'bundled')
2929
const GITHUB_REP_DIR = '../github'
30-
const REST_DESCRIPTION_DIR = path.join('rest-api-description/descriptions-next')
30+
const REST_DESCRIPTION_DIR = 'rest-api-description/descriptions-next'
3131
const VERSION_NAMES = JSON.parse(await readFile('src/rest/data/meta.json', 'utf8')).versionMapping
3232

3333
program

0 commit comments

Comments
 (0)