workflow
parent
bb1841bfeb
commit
b73c33b7f8
|
|
@ -43,6 +43,7 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
lfs: false
|
lfs: false
|
||||||
|
- run: yarn
|
||||||
- run: yarn run cli -m checks-update
|
- run: yarn run cli -m checks-update
|
||||||
timeout-minutes: 180
|
timeout-minutes: 180
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
|
|
@ -1884,6 +1884,11 @@ Resources:
|
||||||
EnableDnsHostnames: true
|
EnableDnsHostnames: true
|
||||||
CidrBlock: !FindInMap ['SubnetConfig', 'VPC', 'CIDR']
|
CidrBlock: !FindInMap ['SubnetConfig', 'VPC', 'CIDR']
|
||||||
|
|
||||||
|
MainBucket:
|
||||||
|
Type: "AWS::S3::Bucket"
|
||||||
|
Properties:
|
||||||
|
BucketName: !Ref EnvironmentName
|
||||||
|
|
||||||
EFSServerSecurityGroup:
|
EFSServerSecurityGroup:
|
||||||
Type: AWS::EC2::SecurityGroup
|
Type: AWS::EC2::SecurityGroup
|
||||||
Properties:
|
Properties:
|
||||||
|
|
@ -6488,13 +6493,13 @@ class GitHub {
|
||||||
const workflows = workflowsResult.data.workflows;
|
const workflows = workflowsResult.data.workflows;
|
||||||
let selectedId = ``;
|
let selectedId = ``;
|
||||||
for (let index = 0; index < workflowsResult.data.total_count; index++) {
|
for (let index = 0; index < workflowsResult.data.total_count; index++) {
|
||||||
if (workflows[index].name === `Async Checks API`) {
|
if (workflows[index].name === GitHub.asyncChecksApiWorkflowName) {
|
||||||
selectedId = workflows[index].id;
|
selectedId = workflows[index].id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (selectedId === ``) {
|
if (selectedId === ``) {
|
||||||
core.info(JSON.stringify(workflows));
|
core.info(JSON.stringify(workflows));
|
||||||
throw new Error(`no workflow with name "Async Checks API"`);
|
throw new Error(`no workflow with name "${GitHub.asyncChecksApiWorkflowName}"`);
|
||||||
}
|
}
|
||||||
yield GitHub.octokit.request(`POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`, {
|
yield GitHub.octokit.request(`POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`, {
|
||||||
owner: GitHub.owner,
|
owner: GitHub.owner,
|
||||||
|
|
@ -6509,6 +6514,7 @@ class GitHub {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
GitHub.asyncChecksApiWorkflowName = `Async Checks API`;
|
||||||
GitHub.githubInputEnabled = true;
|
GitHub.githubInputEnabled = true;
|
||||||
GitHub.longDescriptionContent = ``;
|
GitHub.longDescriptionContent = ``;
|
||||||
exports["default"] = GitHub;
|
exports["default"] = GitHub;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -47,6 +47,11 @@ Resources:
|
||||||
EnableDnsHostnames: true
|
EnableDnsHostnames: true
|
||||||
CidrBlock: !FindInMap ['SubnetConfig', 'VPC', 'CIDR']
|
CidrBlock: !FindInMap ['SubnetConfig', 'VPC', 'CIDR']
|
||||||
|
|
||||||
|
MainBucket:
|
||||||
|
Type: "AWS::S3::Bucket"
|
||||||
|
Properties:
|
||||||
|
BucketName: !Ref EnvironmentName
|
||||||
|
|
||||||
EFSServerSecurityGroup:
|
EFSServerSecurityGroup:
|
||||||
Type: AWS::EC2::SecurityGroup
|
Type: AWS::EC2::SecurityGroup
|
||||||
Properties:
|
Properties:
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,7 @@ import CloudRunnerOptions from './cloud-runner/cloud-runner-options';
|
||||||
import * as core from '@actions/core';
|
import * as core from '@actions/core';
|
||||||
import { Octokit } from '@octokit/core';
|
import { Octokit } from '@octokit/core';
|
||||||
class GitHub {
|
class GitHub {
|
||||||
|
private static readonly asyncChecksApiWorkflowName = `Async Checks API`;
|
||||||
public static githubInputEnabled: boolean = true;
|
public static githubInputEnabled: boolean = true;
|
||||||
private static longDescriptionContent: string = ``;
|
private static longDescriptionContent: string = ``;
|
||||||
private static startedDate: string;
|
private static startedDate: string;
|
||||||
|
|
@ -138,13 +139,13 @@ class GitHub {
|
||||||
const workflows = workflowsResult.data.workflows;
|
const workflows = workflowsResult.data.workflows;
|
||||||
let selectedId = ``;
|
let selectedId = ``;
|
||||||
for (let index = 0; index < workflowsResult.data.total_count; index++) {
|
for (let index = 0; index < workflowsResult.data.total_count; index++) {
|
||||||
if (workflows[index].name === `Async Checks API`) {
|
if (workflows[index].name === GitHub.asyncChecksApiWorkflowName) {
|
||||||
selectedId = workflows[index].id;
|
selectedId = workflows[index].id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (selectedId === ``) {
|
if (selectedId === ``) {
|
||||||
core.info(JSON.stringify(workflows));
|
core.info(JSON.stringify(workflows));
|
||||||
throw new Error(`no workflow with name "Async Checks API"`);
|
throw new Error(`no workflow with name "${GitHub.asyncChecksApiWorkflowName}"`);
|
||||||
}
|
}
|
||||||
await GitHub.octokit.request(`POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`, {
|
await GitHub.octokit.request(`POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches`, {
|
||||||
owner: GitHub.owner,
|
owner: GitHub.owner,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue