Skip to content

Commit

Permalink
πŸ— Remove DRY_RUN flag from nightly branch cut job (#36041)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg authored Sep 13, 2021
1 parent ee14618 commit 22ff7ae
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions build-system/release-workflows/cut-nightly.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ const {cyan, green, red, yellow} = require('../common/colors');
const {log} = require('../common/logging');
const {Octokit} = require('@octokit/rest');

// TODO(danielrozenberg): remove this once the Google-backed job is turned off.
const DRY_RUN = true;

const params = {owner: 'ampproject', repo: 'amphtml'};

const colorizeState = (state) =>
Expand Down Expand Up @@ -60,11 +57,6 @@ async function cutNightlyBranch() {
log('Status of commit', cyan(sha), 'is', colorizeState(state));

if (state === 'success') {
if (DRY_RUN) {
log(yellow('NOTE:'), 'this job is running in DRY_RUN mode.');
break;
}

const response = await octokit.rest.git.updateRef({
...params,
ref: 'heads/nightly',
Expand Down

0 comments on commit 22ff7ae

Please sign in to comment.