Skip to content

Commit

Permalink
πŸ— Use external_id field when filtering out Cut Nightly job (#36343)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielrozenberg committed Oct 13, 2021
1 parent d3062e7 commit 06f0de0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build-system/release-workflows/cut-nightly.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const {log} = require('../common/logging');
const {Octokit} = require('@octokit/rest');
const params = {owner: 'ampproject', repo: 'amphtml'};

// Permanent job ID as assigned by the GitHub Actions runner.
const GITHUB_ACTION_ID = 3867805908;
// Permanent external ID as assigned by the GitHub Actions runner.
const GITHUB_EXTERNAL_ID = 'be30aa50-41df-5bf3-2e88-b5215679ea95';

/**
* Get last green commit
Expand Down Expand Up @@ -40,7 +40,7 @@ async function getCommit(octokit) {
).data;
if (
checkRuns
.filter(({id}) => id !== GITHUB_ACTION_ID)
.filter(({'external_id': id}) => id !== GITHUB_EXTERNAL_ID)
.some(({status}) => status != 'completed')
) {
log(
Expand Down

0 comments on commit 06f0de0

Please sign in to comment.