File tree 1 file changed +15
-11
lines changed
1 file changed +15
-11
lines changed Original file line number Diff line number Diff line change @@ -34,14 +34,23 @@ permissions:
34
34
contents : read
35
35
36
36
jobs :
37
- cdk :
38
- name : Install CDK
37
+ bootstrap :
38
+ name : Bootstrap Region
39
39
runs-on : ubuntu-latest
40
40
permissions :
41
- contents : write
42
41
id-token : write
43
42
environment : layer-${{ inputs.environment }}
44
43
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
45
54
- id : credentials
46
55
name : AWS Credentials
47
56
uses : aws-actions/configure-aws-credentials@e3dd6a429d7300a6a4c196c26e071d42e0343502
53
62
name : Create Workdir
54
63
run : |
55
64
mkdir -p build/project
56
- - id : cdk-install
57
- name : Install CDK
58
- working-directory : build
59
- run : |
60
-
61
65
- id : cdk-project
62
66
name : CDK Project
63
67
working-directory : build/project
68
72
copy_layers :
69
73
name : Copy Layers
70
74
runs-on : ubuntu-latest
75
+ needs : bootstrap
71
76
permissions :
72
- contents : write
73
77
id-token : write
74
78
environment : layer-${{ inputs.environment }}
75
79
steps :
90
94
run : go env
91
95
- id : go-install-pkg
92
96
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
94
98
- id : run-balance
95
99
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