Skip to content

Commit 0aeea5e

Browse files
authored
Merge pull request #16829 from github/update-s3-check-script
Update the context in s3 check script
2 parents 61f305e + 8ee0ac6 commit 0aeea5e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

script/check-s3-images.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ const patterns = require('../lib/patterns')
1212
const authenticateToAWS = require('../lib/authenticate-to-aws.js')
1313
const readlineSync = require('readline-sync')
1414
const { execSync } = require('child_process')
15+
const enterpriseServerVersions = Object.keys(allVersions).filter(v => v.startsWith('enterprise-server@'))
1516
const uploadScript = path.join(process.cwd(), 'script/upload-images-to-s3.js')
1617

1718
// ignore the non-enterprise default version
@@ -51,7 +52,8 @@ async function main () {
5152
page,
5253
site: siteData,
5354
currentVersion: version,
54-
currentLanguage: 'en'
55+
currentLanguage: 'en',
56+
enterpriseServerVersions
5557
}
5658

5759
const rendered = await renderContent(page.markdown, context)

0 commit comments

Comments
 (0)