gh-gei icon indicating copy to clipboard operation
gh-gei copied to clipboard

CI workflow: error uploading artifacts & commiting release notes and version

Open akordowski opened this issue 2 months ago • 1 comments

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:

https://github.com/github/gh-gei/blob/b380004c8ab8bd1e2a4bec9c9aafedd42c9f7026/.github/workflows/CI.yml#L18-L20

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.

akordowski avatar Nov 05 '25 17:11 akordowski

There is also an error while commiting release notes and version. This is caused by the persist-credentials: false setting on the checkout (see here).

https://github.com/github/gh-gei/blob/b380004c8ab8bd1e2a4bec9c9aafedd42c9f7026/.github/workflows/CI.yml#L285-L289

I removed the setting in the provided PR and also updated the version of the actions.

akordowski avatar Nov 06 '25 10:11 akordowski