1212 default : ' 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, af-south-1, ap-east-1, ap-south-2, ap-southeast-3, ap-southeast-4, eu-central-2, eu-south-1, eu-south-2, il-central-1, me-central-1, me-south-1'
1313
1414env :
15+ VERSION : ${{ github.event.inputs.version }}
16+ AWS_REGIONS : ${{ github.event.inputs.aws_region }}
17+
18+
1519 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
1620 LAYER_NAME : AWSOpenTelemetryDistroPython
1721
2832 - name : Set up regions matrix
2933 id : set-matrix
3034 run : |
31- IFS=',' read -ra REGIONS <<< "${{ github.event.inputs.aws_region }}"
35+ IFS=',' read -ra REGIONS <<< "${{ env.AWS_REGIONS }}"
3236 MATRIX="["
3337 for region in "${REGIONS[@]}"; do
3438 trimmed_region=$(echo "$region" | xargs)
@@ -191,7 +195,7 @@ jobs:
191195 run : echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
192196 - name : Create Release Notes
193197 run : |
194- echo "AWS OpenTelemetry Lambda Layer for Python version ${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" > release_notes.md
198+ echo "AWS OpenTelemetry Lambda Layer for Python version ${{ env.VERSION }}-${{ steps.commit.outputs.sha_short }}" > release_notes.md
195199 echo "" >> release_notes.md
196200 echo "" >> release_notes.md
197201 echo "See new Lambda Layer ARNs:" >> release_notes.md
@@ -205,10 +209,10 @@ jobs:
205209 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
206210 run : |
207211 gh release create --target "$GITHUB_REF_NAME" \
208- --title "Release lambda-v${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" \
212+ --title "Release lambda-v${{ env.VERSION }}-${{ steps.commit.outputs.sha_short }}" \
209213 --notes-file release_notes.md \
210214 --draft \
211- "lambda-v${{ github.event.inputs.version }}-${{ steps.commit.outputs.sha_short }}" \
215+ "lambda-v${{ env.VERSION }}-${{ steps.commit.outputs.sha_short }}" \
212216 layer_arns.tf layer.zip
213217 echo Removing release_notes.md ...
214218 rm -f release_notes.md
0 commit comments