Description
The CI.yml workflow throws the following error:
Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run
I was able to track it down to this matrix:
|
matrix: |
|
runner-os: [windows-latest, ubuntu-latest, macos-latest] |
|
language: [ csharp, actions ] |
As the artifacts are uploaded during the actions step the conditions on the upload setps must be changed
from:
if: always() && matrix.runner-os == 'ubuntu-latest'
to:
if: always() && matrix.runner-os == 'ubuntu-latest' && matrix.language == 'csharp'
This fixes the error and the artifacts are uploaded only once.
Description
The
CI.ymlworkflow throws the following error:Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow runI was able to track it down to this matrix:
gh-gei/.github/workflows/CI.yml
Lines 18 to 20 in b380004
As the artifacts are uploaded during the
actionsstep the conditions on the upload setps must be changedfrom:
if: always() && matrix.runner-os == 'ubuntu-latest'to:
if: always() && matrix.runner-os == 'ubuntu-latest' && matrix.language == 'csharp'This fixes the error and the artifacts are uploaded only once.