File tree Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Expand file tree Collapse file tree 1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,23 @@ permissions:
3434 contents : read
3535
3636jobs :
37- cdk :
38- name : Install CDK
37+ bootstrap :
38+ name : Bootstrap Region
3939 runs-on : ubuntu-latest
4040 permissions :
41- contents : write
4241 id-token : write
4342 environment : layer-${{ inputs.environment }}
4443 steps :
44+ - name : checkout
45+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
46+ with :
47+ ref : ${{ github.sha }}
48+ - name : Setup Node.js
49+ uses : actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
50+ with :
51+ node-version : " 22"
52+ - name : Setup dependencies
53+ uses : aws-powertools/actions/.github/actions/cached-node-modules@29979bc5339bf54f76a11ac36ff67701986bb0f0
4554 - id : credentials
4655 name : AWS Credentials
4756 uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
5362 name : Create Workdir
5463 run : |
5564 mkdir -p build/project
56- - id : cdk-install
57- name : Install CDK
58- working-directory : build
59- run : |
60- npm i aws-cdk@2.178.0
6165 - id : cdk-project
6266 name : CDK Project
6367 working-directory : build/project
6872 copy_layers :
6973 name : Copy Layers
7074 runs-on : ubuntu-latest
75+ needs : bootstrap
7176 permissions :
72- contents : write
7377 id-token : write
7478 environment : layer-${{ inputs.environment }}
7579 steps :
9094 run : go env
9195 - id : go-install-pkg
9296 name : Install
93- run : go install github.com/aws-powertools/actions/layer-balancer/cmd/balance@latest
97+ run : go install github.com/aws-powertools/actions/layer-balancer/cmd/balance@@29979bc5339bf54f76a11ac36ff67701986bb0f0
9498 - id : run-balance
9599 name : Run Balance
96- run : balance -read-region us-east-1 -write-region ${{ inputs.region }} -write-role ${{ secrets.BALANCE_ROLE_ARN }} -layer-name AWSLambdaPowertoolsTypeScriptV2 -dry-run=false
100+ run : balance -read-region us-east-1 -write-region ${{ inputs.region }} -write-role ${{ secrets.BALANCE_ROLE_ARN }} -layer-name AWSLambdaPowertoolsTypeScriptV2 -dry-run=false
You can’t perform that action at this time.
0 commit comments