Skip to content

Commit f75a75a

Browse files
authored
Workflow publish AWSOpenTelemetryDistroJs lambda layer and update layer ARNs in sample app (#91)
*Description of changes:* Publish AWSOpenTelemetryDistroJs lambda layer and update layer ARNs in sample app By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
1 parent 8f5a2ed commit f75a75a

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

.github/workflows/release-lambda.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ on:
1010

1111
env:
1212
COMMERCIAL_REGIONS: us-east-1, us-east-2, us-west-1, us-west-2, ap-south-1, ap-northeast-3, ap-northeast-2, ap-southeast-1, ap-southeast-2, ap-northeast-1, ca-central-1, eu-central-1, eu-west-1, eu-west-2, eu-west-3, eu-north-1, sa-east-1
13-
# LAYER_NAME: AWSOpenTelemetryDistroJs
14-
LAYER_NAME: AWSOpenTelemetryDistroJsBeta
13+
LAYER_NAME: AWSOpenTelemetryDistroJs
1514

1615
permissions:
1716
id-token: write
@@ -187,3 +186,23 @@ jobs:
187186
with:
188187
name: layer.tf
189188
path: layer.tf
189+
update-layer:
190+
runs-on: ubuntu-latest
191+
needs: generate-release-note
192+
steps:
193+
- name: Checkout Repo @ SHA - ${{ github.sha }}
194+
uses: actions/checkout@v4
195+
- name: download layer.tf
196+
uses: actions/download-artifact@v3
197+
with:
198+
name: layer.tf
199+
- name: Commit changes
200+
env:
201+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
202+
run: |
203+
git config user.name "github-actions[bot]"
204+
git config user.email "github-actions[bot]@users.noreply.github.com"
205+
mv layer.tf lambda-layer/terraform/lambda/
206+
git add lambda-layer/terraform/lambda/layer.tf
207+
git commit -m "Update Lambda layer ARNs for releasing" || echo "No changes to commit"
208+
git push

0 commit comments

Comments
 (0)