File tree Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Expand file tree Collapse file tree 3 files changed +15
-1
lines changed Original file line number Diff line number Diff line change 2727
2828 steps :
2929 - uses : actions/checkout@v3
30+ with :
31+ fetch-depth : 0
32+
33+ - name : Set version
34+ run :
35+ echo "VERSION=`git describe --tags HEAD | tr -d '\n'`" >> $GITHUB_ENV
3036
3137 - uses : actions/setup-node@v3
3238 with :
Original file line number Diff line number Diff line change @@ -7,12 +7,18 @@ export class RegistryApp extends App {
77 lambdaSources,
88 repository,
99 gitHubOICDProviderArn,
10+ version,
1011 } : {
1112 lambdaSources : RegistryLambdas
1213 repository : Repository
1314 gitHubOICDProviderArn : string
15+ version : string
1416 } ) {
15- super ( )
17+ super ( {
18+ context : {
19+ version,
20+ } ,
21+ } )
1622
1723 new RegistryStack ( this , {
1824 lambdaSources,
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ const repository = {
1313 repoUrl . pathname . split ( '/' ) [ 2 ] ?. replace ( / \. g i t $ / , '' ) ??
1414 'public-parameter-registry-aws-js' ,
1515}
16+ const version = process . env . VERSION ?? pJSON . version
1617
1718export type PackedLambda = { lambdaZipFile : string ; handler : string }
1819
@@ -43,4 +44,5 @@ new RegistryApp({
4344 gitHubOICDProviderArn : await ensureGitHubOIDCProvider ( {
4445 iam : new IAMClient ( { } ) ,
4546 } ) ,
47+ version,
4648} )
You can’t perform that action at this time.
0 commit comments