Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump actions/checkout from 3 to 4 #390

Closed
wants to merge 9 commits into from
2 changes: 1 addition & 1 deletion .github/workflows/lambda-runner-binaries-syncer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
working-directory: modules/runner-binaries-syncer/lambdas/runner-binaries-syncer

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn install
- name: Run prettier
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lambda-runners.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
working-directory: modules/runners/lambdas/runners

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn install
- name: Run prettier
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lambda-webhook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
working-directory: modules/webhook/lambdas/webhook

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install dependencies
run: yarn install
- name: Run prettier
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/packer-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
working-directory: images/${{ matrix.image }}
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: packer init
run: packer init .
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
LAMBDA: ${{ matrix.lambda }}
run: echo ::set-output name=name::${LAMBDA##*/}
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Add zip
run: apt update && apt install zip
- name: Build dist
Expand All @@ -39,7 +39,7 @@ jobs:
needs:
prepare
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/semantic-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
name: Semantic Commit Message Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: amannn/action-semantic-pull-request@v4
name: Check PR for Semantic Commit Message
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/terraform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
image: hashicorp/terraform:${{ matrix.terraform }}
steps:
- name: "Checkout"
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: "Fake zip files" # Validate will fail if it cannot find the zip files
run: |
touch modules/webhook/lambdas/webhook/webhook.zip
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
container:
image: hashicorp/terraform:${{ matrix.terraform }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: terraform init
run: terraform init -get -backend=false -input=false
- if: contains(matrix.terraform, '1.1.')
Expand Down
3 changes: 3 additions & 0 deletions modules/runners/lambdas/runners/src/aws/runners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,8 @@ export async function createRunner(runnerParameters: RunnerInputParameters): Pro
logger.info('Created instance(s): ', instances.join(','), LogFields.print());

const ssm = new SSM();
const delay = async (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));

for (const instance of instances) {
await ssm
.putParameter({
Expand All @@ -211,5 +213,6 @@ export async function createRunner(runnerParameters: RunnerInputParameters): Pro
Type: 'SecureString',
})
.promise();
await delay(25);
}
}
Loading