chore: correctly capitalize releaseID (#16079)

This commit is contained in:
Shelley Vohr 2018-12-14 15:15:16 -08:00 committed by GitHub
parent 280f9bf49c
commit 0431833866
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,8 +5,8 @@ require('colors')
const pass = '\u2713'.green const pass = '\u2713'.green
const fail = '\u2717'.red const fail = '\u2717'.red
const args = require('minimist')(process.argv.slice(2), { const args = require('minimist')(process.argv.slice(2), {
string: ['tag', 'releaseId'], string: ['tag', 'releaseID'],
default: { releaseId: '' } default: { releaseID: '' }
}) })
const { execSync } = require('child_process') const { execSync } = require('child_process')
const { GitProcess } = require('dugite') const { GitProcess } = require('dugite')
@ -82,7 +82,7 @@ async function deleteTag (tag, targetRepo) {
} }
async function cleanReleaseArtifacts () { async function cleanReleaseArtifacts () {
const releaseId = args.releaseId.length > 0 ? args.releaseId : null const releaseId = args.releaseID.length > 0 ? args.releaseID : null
const isNightly = args.tag.includes('nightly') const isNightly = args.tag.includes('nightly')
if (releaseId) { if (releaseId) {