Skip to content

Commit a2b1aac

Browse files
authored
Unique artifact names for upload and merge for download (#1014)
*Issue*: The `upload-artifact@v4` action no longer allows uploading artifacts with same name. Thus the release lambda workflow fails: https://github.com/aws-observability/aws-otel-java-instrumentation/actions/runs/13146172757 *Description of changes:* - Taking the [fix that was done for the Application Signals .Net Lambda Layer](aws-observability/aws-otel-dotnet-instrumentation@d752769): - Appending region to the artifact name for making it unique - While downloading these artifacts we will just merge. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 047f41a commit a2b1aac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release-lambda.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ jobs:
140140
if: ${{ success() }}
141141
uses: actions/upload-artifact@v4
142142
with:
143-
name: ${{ env.LAYER_NAME }}
143+
name: ${{ env.LAYER_NAME }}-${{ matrix.aws_region }}
144144
path: ${{ env.LAYER_NAME }}/${{ matrix.aws_region }}
145145

146146
- name: clean s3
@@ -160,8 +160,9 @@ jobs:
160160
- name: download layerARNs
161161
uses: actions/download-artifact@v4
162162
with:
163-
name: ${{ env.LAYER_NAME }}
163+
pattern: ${{ env.LAYER_NAME }}-*
164164
path: ${{ env.LAYER_NAME }}
165+
merge-multiple: true
165166

166167
- name: show layerARNs
167168
run: |

0 commit comments

Comments
 (0)