Fix CI workflow: resolve artifact conflict and enable runs on every commit#2
Merged
yves-chevallier merged 2 commits intomainfrom Oct 1, 2025
Conversation
Co-authored-by: yves-chevallier <52489316+yves-chevallier@users.noreply.github.com>
Copilot
AI
changed the title
Dernier problème dans le CI: With the provided path, there will be 2 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 t...
Fix CI workflow: resolve artifact conflict and enable runs on every commit
Oct 1, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The CI workflow had three issues:
Artifact naming conflict (409 error): Both
luatexandxetexjobs in the matrix strategy were trying to upload artifacts with the same nametonpkg-artifacts, causing a conflict error:Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow runCI only ran on tags: The workflow was configured to only run on push events for tags (
v*.*.*), not on regular commits to branchesUnnecessary xetex artifacts: The xetex engine is used for compatibility testing only, but its artifacts were being uploaded alongside luatex artifacts
Solution
Made minimal changes to
.github/workflows/ci.yml:1. Fixed artifact conflict by conditionally uploading only luatex artifacts
Added
if: matrix.engine == 'luatex'to the artifact upload step. Now only the luatex job uploads artifacts, while xetex still runs for compatibility testing.2. Enabled CI on every commit
Updated the push trigger to include all branches:
3. Release behavior unchanged
The release job still only runs on version tags (v*..) thanks to the existing condition:
if: startsWith(github.ref, 'refs/tags/')Result
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.