Fix artifact name conflict when running action multiple times in matrix builds - #478
Merged
Merged
Conversation
Co-authored-by: swissspidy <841956+swissspidy@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix invocation of plugin-check-action for multiple plugins
Fix artifact name conflict when running action multiple times in matrix builds
Jan 3, 2026
🔍 WordPress Plugin Check Report
📊 Report
❌ Errors (8)📁 hello.php (7 errors)
📁 readme.txt (1 error)
|
| 📍 Line | 🔖 Check | 💬 Message |
|---|---|---|
72 |
WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedFunctionFound | Functions declared in the global namespace by a theme/plugin should start with the theme/plugin prefix. Found: "dolly_css". |
🤖 Generated by WordPress Plugin Check Action • Learn more about Plugin Check
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes artifact name conflicts that occur when running the plugin-check-action multiple times in matrix builds (e.g., for monorepos with multiple plugins). The solution appends the slug input to the artifact name when provided, ensuring each matrix job generates a uniquely named artifact.
Key Changes:
- Modified the artifact upload name to conditionally include the slug suffix
- Updated package-lock.json with peer dependency metadata
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| action.yml | Modified artifact name on line 196 to append -{slug} when the slug input is provided, using the same conditional pattern as other inputs in the action |
| package-lock.json | Added "peer": true flags to numerous dependencies - standard npm metadata update that doesn't affect functionality |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
westonruter
approved these changes
Jan 3, 2026
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.
When invoking
plugin-check-actionmultiple times in a matrix build (e.g., for multiple plugins in a monorepo), all runs after the first fail with a 409 Conflict error because they attempt to upload artifacts with the same hardcoded name.Changes
action.ymlto append thesluginput when provided:Behavior
Without
slug(backward compatible):With
slugin matrix:Each matrix job now generates a uniquely named artifact, eliminating the conflict.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.