Open
Exclude _test.sh artifacts from sync-actions mirroring#184
_test.sh artifacts from sync-actions mirroring#184Conversation
Copilot
AI
changed the title
chore: ignore and remove _test.sh files during sync
Exclude Jul 9, 2026
_test.sh artifacts from sync-actions mirroring
Copilot created this pull request from a session on behalf of
pelikhan
July 9, 2026 03:54
View session
pelikhan
approved these changes
Jul 9, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
This PR tightens the sync-actions workflow’s action-folder mirroring so shell test artifacts don’t get copied into gh-aw-actions, bringing shell test handling in line with the existing JavaScript test-file exclusions.
Changes:
- Extends the
rsyncexclusions to skip*_test.shfiles during the action-folder sync. - Adds a post-sync cleanup
find ... -deleteto remove any lingering*_test.shfiles in destination action directories (since excluded files won’t be removed byrsync --delete).
Show a summary per file
| File | Description |
|---|---|
.github/workflows/sync-actions.yml |
Adds rsync exclude + post-sync deletion for *_test.sh to prevent shell test scripts from leaking into mirrored action folders. |
Review details
Tip
Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Low
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.
The sync workflow currently filters out JS test artifacts but still copies shell test scripts, allowing
_test.shfiles to leak into this repo during action sync. This change aligns shell test handling with existing JS test-file behavior.Scope
.github/workflows/sync-actions.ymlin the action-folder sync step only.Sync filtering
rsyncexclusions to skip shell test files:--exclude='*_test.sh'.Post-sync cleanup parity
*_test.shfiles in destination action directories, matching the existing.test.cjscleanup pattern.