Comments (9)
I concur. From a user of this action's perspective, the ignoring of hidden files was rather unexpected. My vote would be to have hidden files included by default unless someone has a use-case where this behavior wouldn't be desirable.
from repo-file-sync-action.
This is caused by the library used for reading files node-readfiles
. By default it doesn't include hidden files in its output so this action doesn't check to see if they are orphaned.
This is a simple fix though, the question is just if we should include hidden files by default or if we add a new option to enable this behaviour like includeHidden
or something similar.
My general goal is to not add any breaking changes to this action, so the second method with a configuration option to enable it seems safer. The action currently doesn't distinguish between normal and hidden files anywhere else though, so the current behaviour is more of a bug and we should just include hidden files as well. That's what I am leaning towards.
Any thoughts?
from repo-file-sync-action.
Yeah I can see why that might be unexpected. I didn't know node-readfiles
excluded them by default and I guess have never had to sync hidden files or else I would have noticed.
Will implement a fix sometime this week.
from repo-file-sync-action.
Implemented a fix in #160.
@Casey-Kiewit please verify that it works by running the action with that branch:
uses: BetaHuhn/repo-file-sync-action@fix/hidden-files
Will release it to master after that.
from repo-file-sync-action.
@BetaHuhn That branch seems to exhibit the same issues we've been running into. Here's what we tried with it:
- Changed the file sync to point to the new branch of this action. No sync PRs were created.
- Merged in a PR that added back in the
.env
file it missed. Created sync PRs adding the.env
file where it had been manually deleted. - Merged in a PR removing the
.env
file again. No sync files were updated.
from repo-file-sync-action.
Oh no, just saw that I forgot to rebuild the action on that branch, fixed now. Sorry!
I tested it myself just now and it now works. Could you please try again @Casey-Kiewit?
from repo-file-sync-action.
@BetaHuhn Thanks for fixing that! I really appreciate it! This action has been working wonderfully for us!
I've tested and confirmed that the new build successfully removes hidden files for us as well.
from repo-file-sync-action.
Okay great, thanks for confirming!
Will merge and release it later today.
from repo-file-sync-action.
🎉 This issue has been resolved in version 1.17.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀
from repo-file-sync-action.
Related Issues (20)
- Action is pulling in binary files in a repo HOT 15
- Command failed: git ls-tree -r --full-tree HOT 3
- Actions fail in v1.17.18 HOT 3
- Error: Cannot create a new GitHub Tree: Server Error HOT 11
- Cannot set commit message as the title of the PR HOT 2
- Error: stdout maxBuffer length exceeded HOT 4
- Syncing through forked repo hits "shallow update not allowed" after the first pull request is merged into target repo
- Exclude no longer works on version v1.18.00 HOT 8
- Allow configuring parameters for Nunjucks
- Newest version does not run after ESM change HOT 5
- Template rendering doesn't work alongside `dest` HOT 1
- Security Contact - missing HOT 1
- sporadic "Server Error" on adding labels
- Reporting a vulnerability HOT 1
- Exclude overlap causing missed files in sync HOT 1
- Sync subfolder to destination
- Keep creating empty PRs after each push
- GitHub Actions: Transitioning from Node 16 to Node 20 HOT 2
- deleteOrphaned seems to have no effect
- Error when syncing suddenly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from repo-file-sync-action.