Skip to content

Commit

Permalink
include ncc build action
Browse files Browse the repository at this point in the history
  • Loading branch information
hannojg committed Feb 16, 2024
1 parent 9cd4a68 commit 8cf13e8
Show file tree
Hide file tree
Showing 15 changed files with 16,103 additions and 8 deletions.
8 changes: 8 additions & 0 deletions .github/actions/javascript/awaitStagingDeploys/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,14 @@ class GithubUtils {
.then((events) => _.filter(events, (event) => event.event === 'closed'))
.then((closedEvents) => lodashGet(_.last(closedEvents), 'actor.login', ''));
}

static getArtifactByName(artefactName) {
return this.paginate(this.octokit.actions.listArtifactsForRepo, {
owner: CONST.GITHUB_OWNER,
repo: CONST.APP_REPO,
per_page: 100,
}).then((data) => _.findWhere(data.artifacts, {name: artefactName}));
}
}

module.exports = GithubUtils;
Expand Down
8 changes: 8 additions & 0 deletions .github/actions/javascript/checkDeployBlockers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,14 @@ class GithubUtils {
.then((events) => _.filter(events, (event) => event.event === 'closed'))
.then((closedEvents) => lodashGet(_.last(closedEvents), 'actor.login', ''));
}

static getArtifactByName(artefactName) {
return this.paginate(this.octokit.actions.listArtifactsForRepo, {
owner: CONST.GITHUB_OWNER,
repo: CONST.APP_REPO,
per_page: 100,
}).then((data) => _.findWhere(data.artifacts, {name: artefactName}));
}
}

module.exports = GithubUtils;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -865,6 +865,14 @@ class GithubUtils {
.then((events) => _.filter(events, (event) => event.event === 'closed'))
.then((closedEvents) => lodashGet(_.last(closedEvents), 'actor.login', ''));
}

static getArtifactByName(artefactName) {
return this.paginate(this.octokit.actions.listArtifactsForRepo, {
owner: CONST.GITHUB_OWNER,
repo: CONST.APP_REPO,
per_page: 100,
}).then((data) => _.findWhere(data.artifacts, {name: artefactName}));
}
}

module.exports = GithubUtils;
Expand Down
Loading

0 comments on commit 8cf13e8

Please sign in to comment.