Skip to content

Commit

Permalink
Change branch name back (#44128)
Browse files Browse the repository at this point in the history
  • Loading branch information
akirk authored Jul 14, 2020
1 parent 48048da commit 323752f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/get-circle-artifact-url.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ const basePath = '/api/v1.1/project/github/Automattic/wp-calypso';
const maxBuilds = 100;

async function getCircleArtifactUrl( pathMatchRegex ) {
if ( ! pathMatchRegex instanceof RegExp ) {
if ( ! ( pathMatchRegex instanceof RegExp ) ) {
console.error( 'Expected a valid RegExp. Received: %o', pathMatchRegex );
process.exit( 1 );
}
try {
// Fetch recent successful master builds
const builds = await httpsGetJsonPromise( {
...baseOptions,
path: `${ basePath }/tree/HEAD?filter=successful&limit=${ maxBuilds }`,
path: `${ basePath }/tree/master?filter=successful&limit=${ maxBuilds }`,
} );

const buildNumbersWithArtifacts = builds
Expand Down

0 comments on commit 323752f

Please sign in to comment.