diff --git a/API.md b/API.md index 5240d66e..9ae2bc42 100644 --- a/API.md +++ b/API.md @@ -462,7 +462,7 @@ pipeline.addStage(stage, { jobSteps: [ { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', }, { name: 'pre beta-deploy action', diff --git a/README.md b/README.md index 04c7c5e9..61f9deeb 100644 --- a/README.md +++ b/README.md @@ -462,7 +462,7 @@ pipeline.addStage(stage, { jobSteps: [ { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', }, { name: 'pre beta-deploy action', diff --git a/docs/waves.md b/docs/waves.md index 5dcfc544..6e4d9640 100644 --- a/docs/waves.md +++ b/docs/waves.md @@ -73,7 +73,7 @@ const wave = pipeline.addWave('MyWave', { jobSteps: [ { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', }, { name: 'post wave action', @@ -99,7 +99,7 @@ wave.addPost([ jobSteps: [ { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', }, { name: 'post wave action', diff --git a/src/pipeline.ts b/src/pipeline.ts index 723b0bf5..7ca182cd 100644 --- a/src/pipeline.ts +++ b/src/pipeline.ts @@ -650,7 +650,7 @@ export class GitHubWorkflow extends PipelineBase { ...this.stepsToConfigureAws(region, assumeRoleArn), { id: 'Deploy', - uses: 'aws-actions/aws-cloudformation-github-deploy@v1.2.0', + uses: 'aws-actions/aws-cloudformation-github-deploy@v1', with: params, }, ], @@ -753,7 +753,7 @@ export class GitHubWorkflow extends PipelineBase { for (const input of step.inputs) { downloadInputs.push({ - uses: 'actions/download-artifact@v3', + uses: 'actions/download-artifact@v4', with: { name: input.fileSet.id, path: input.directory, @@ -763,7 +763,7 @@ export class GitHubWorkflow extends PipelineBase { for (const output of step.outputs) { uploadOutputs.push({ - uses: 'actions/upload-artifact@v3', + uses: 'actions/upload-artifact@v4', with: { name: output.fileSet.id, path: output.directory, @@ -865,7 +865,7 @@ export class GitHubWorkflow extends PipelineBase { return [{ name: `Download ${CDKOUT_ARTIFACT}`, - uses: 'actions/download-artifact@v3', + uses: 'actions/download-artifact@v4', with: { name: CDKOUT_ARTIFACT, path: targetDir, @@ -877,7 +877,7 @@ export class GitHubWorkflow extends PipelineBase { return [ { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', }, ]; } @@ -889,7 +889,7 @@ export class GitHubWorkflow extends PipelineBase { return [{ name: `Upload ${CDKOUT_ARTIFACT}`, - uses: 'actions/upload-artifact@v3', + uses: 'actions/upload-artifact@v4', with: { name: CDKOUT_ARTIFACT, path: dir, diff --git a/test/__snapshots__/github.test.ts.snap b/test/__snapshots__/github.test.ts.snap index daa695a0..b2d54be4 100644 --- a/test/__snapshots__/github.test.ts.snap +++ b/test/__snapshots__/github.test.ts.snap @@ -23,7 +23,7 @@ jobs: image: alpine steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: node-version: \\"16\\" @@ -42,7 +42,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets @@ -71,7 +71,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets @@ -97,7 +97,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets @@ -123,7 +123,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets @@ -149,7 +149,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets @@ -175,7 +175,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets @@ -201,7 +201,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: npm install --no-save cdk-assets - name: Authenticate Via GitHub Secrets @@ -248,7 +248,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: StageA-BucketStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -280,7 +280,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: StageA-FunctionStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -329,7 +329,7 @@ jobs: role-to-assume: arn:aws:iam::222222222222:role/cdk-hnb659fds-deploy-role-222222222222-eu-west-2 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: StageB-BucketStack template: https://cdk-hnb659fds-assets-222222222222-eu-west-2.s3.eu-west-2.amazonaws.com/\${{ @@ -364,7 +364,7 @@ jobs: role-to-assume: arn:aws:iam::222222222222:role/cdk-hnb659fds-deploy-role-222222222222-eu-west-2 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: StageB-FunctionStack template: https://cdk-hnb659fds-assets-222222222222-eu-west-2.s3.eu-west-2.amazonaws.com/\${{ @@ -395,11 +395,11 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build run: \\"\\" - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -415,7 +415,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -444,7 +444,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -483,7 +483,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStage-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -514,13 +514,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -549,11 +549,11 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build run: \\"\\" - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -570,7 +570,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -600,7 +600,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -640,7 +640,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStack-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -671,13 +671,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -693,7 +693,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -721,7 +721,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -767,7 +767,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStack-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -798,13 +798,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -832,11 +832,11 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build run: \\"\\" - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -852,7 +852,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -881,7 +881,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -920,7 +920,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStack-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -954,13 +954,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -988,11 +988,11 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Build run: \\"\\" - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -1008,7 +1008,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -1037,7 +1037,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: github.out @@ -1076,7 +1076,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStack-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ diff --git a/test/__snapshots__/runner-provided.test.ts.snap b/test/__snapshots__/runner-provided.test.ts.snap index 068dcc29..86a0620f 100644 --- a/test/__snapshots__/runner-provided.test.ts.snap +++ b/test/__snapshots__/runner-provided.test.ts.snap @@ -21,13 +21,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -43,7 +43,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: runner-provided.out @@ -63,7 +63,7 @@ jobs: runs-on: ubuntu-latest steps: - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStack-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ diff --git a/test/__snapshots__/stage-options.test.ts.snap b/test/__snapshots__/stage-options.test.ts.snap index 54964dcf..b2a2edee 100644 --- a/test/__snapshots__/stage-options.test.ts.snap +++ b/test/__snapshots__/stage-options.test.ts.snap @@ -22,13 +22,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -45,7 +45,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: stage.out @@ -101,7 +101,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyPrePostStack-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -120,7 +120,7 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: post deploy action uses: my-post-deploy-action@1.0.0 with: @@ -150,13 +150,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -172,7 +172,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: stage.out @@ -210,7 +210,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStack-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -242,13 +242,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -264,7 +264,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: stage.out @@ -302,7 +302,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStack-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -334,13 +334,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -356,7 +356,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: stage.out @@ -395,7 +395,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStage1-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -425,7 +425,7 @@ jobs: role-to-assume: arn:aws:iam::222222222222:role/cdk-hnb659fds-deploy-role-222222222222-us-west-2 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStage2-MyStack template: https://cdk-hnb659fds-assets-222222222222-us-west-2.s3.us-west-2.amazonaws.com/\${{ @@ -458,13 +458,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -482,7 +482,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: stage.out @@ -538,7 +538,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStageA-MyStackA template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -568,7 +568,7 @@ jobs: role-to-assume: arn:aws:iam::12345678901:role/cdk-hnb659fds-deploy-role-12345678901-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStageB-MyStackB template: https://cdk-hnb659fds-assets-12345678901-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -589,7 +589,7 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: post wave action uses: my-post-wave-action@1.0.0 with: @@ -619,13 +619,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -641,7 +641,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: stage.out @@ -680,7 +680,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStack-MyStack template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -711,13 +711,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -733,7 +733,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: stage.out @@ -772,7 +772,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStageA-MyStackA template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -801,7 +801,7 @@ jobs: role-to-assume: arn:aws:iam::12345678901:role/cdk-hnb659fds-deploy-role-12345678901-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStageB-MyStackB template: https://cdk-hnb659fds-assets-12345678901-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -832,13 +832,13 @@ jobs: env: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install run: yarn - name: Build run: yarn build - name: Upload cdk.out - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: cdk.out path: cdk.out @@ -854,7 +854,7 @@ jobs: asset-hash: \${{ steps.Publish.outputs.asset-hash }} steps: - name: Download cdk.out - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: cdk.out path: stage.out @@ -893,7 +893,7 @@ jobs: role-to-assume: arn:aws:iam::111111111111:role/cdk-hnb659fds-deploy-role-111111111111-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStageA-MyStackA template: https://cdk-hnb659fds-assets-111111111111-us-east-1.s3.us-east-1.amazonaws.com/\${{ @@ -923,7 +923,7 @@ jobs: role-to-assume: arn:aws:iam::12345678901:role/cdk-hnb659fds-deploy-role-12345678901-us-east-1 role-external-id: Pipeline - id: Deploy - uses: aws-actions/aws-cloudformation-github-deploy@v1.2.0 + uses: aws-actions/aws-cloudformation-github-deploy@v1 with: name: MyStageB-MyStackB template: https://cdk-hnb659fds-assets-12345678901-us-east-1.s3.us-east-1.amazonaws.com/\${{ diff --git a/test/stage-options.test.ts b/test/stage-options.test.ts index d795ac91..abacad2e 100644 --- a/test/stage-options.test.ts +++ b/test/stage-options.test.ts @@ -282,7 +282,7 @@ test('can set pre/post github action job step', () => { jobSteps: [ { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', }, { name: 'post deploy action', @@ -303,7 +303,7 @@ test('can set pre/post github action job step', () => { expect(workflowFileContents).toMatchSnapshot(); expect(workflowFileContents).toContain('my-pre-deploy-action@1.0.0'); expect(workflowFileContents).toContain('my-post-deploy-action@1.0.0'); - expect(workflowFileContents).toContain('actions/checkout@v3'); + expect(workflowFileContents).toContain('actions/checkout@v4'); expect(workflowFileContents).toContain( 'contains(fromJson(\'["push", "pull_request"]\'), github.event_name)', ); @@ -428,7 +428,7 @@ test('github stages in waves works', () => { jobSteps: [ { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', }, { name: 'post wave action', @@ -506,7 +506,7 @@ test('stages in pipeline works with `if`', () => { const workflowFileContents = readFileSync(pipeline.workflowPath, 'utf-8'); expect(workflowFileContents).toMatchSnapshot(); - expect(workflowFileContents).toContain('actions/checkout@v3'); + expect(workflowFileContents).toContain('actions/checkout@v4'); const yaml = YAML.parse(workflowFileContents); expect(yaml).toMatchObject({