Skip to content

Commit fbc3cf7

Browse files
committed
ci: use v3 artifact APIs for build-distribution (elastic#2046)
Hopefully fix: The lambda layer can be published as follows for dev work: aws lambda --output json publish-layer-version --layer-name 'runner-dev-elastic-apm-python' --description 'runner dev Elastic APM Python agent lambda layer' --zip-file 'fileb://build/dist/elastic-apm-python-lambda-layer.zip' Run actions/upload-artifact@v4 with: name: build-distribution path: ./build/ if-no-files-found: error compression-level: 6 overwrite: false env: ... With the provided path, there will be 636 files uploaded Artifact name is valid! Root directory input is valid! Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
1 parent c22d189 commit fbc3cf7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/actions/build-distribution/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
run: ./dev-utils/make-distribution.sh
1515
shell: bash
1616

17-
- uses: actions/upload-artifact@v4
17+
- uses: actions/upload-artifact@v3
1818
with:
1919
name: build-distribution
2020
path: ./build/

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
secrets: |
8686
secret/observability-team/ci/service-account/apm-agent-python access_key_id | AWS_ACCESS_KEY_ID ;
8787
secret/observability-team/ci/service-account/apm-agent-python secret_access_key | AWS_SECRET_ACCESS_KEY
88-
- uses: actions/download-artifact@v4
88+
- uses: actions/download-artifact@v3
8989
with:
9090
name: build-distribution
9191
path: ./build
@@ -128,7 +128,7 @@ jobs:
128128
roleId: ${{ secrets.VAULT_ROLE_ID }}
129129
secretId: ${{ secrets.VAULT_SECRET_ID }}
130130

131-
- uses: actions/download-artifact@v4
131+
- uses: actions/download-artifact@v3
132132
with:
133133
name: build-distribution
134134
path: ./build

0 commit comments

Comments
 (0)