Replies: 1 comment
-
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
I am using a simple GitHub workflow (see below code) that successfully pushes any new file or alteration of a file from source to remote.
However, it fails to delete files on remote, that where removed in source.
Example:
I already ensured the files on remote are owned by the same user used for the GitHub action, also the write/read permissions are set correctly.
This is my action file:
I also tried to remove
--quiet
to see some more verbose output, did not give me a clue as of why it would fail to delete the remote filesI also tried to add another step, as below, which also makes no difference:
Basically, it plain outright fails to remove files from remote, if they are not present in source anymore.
Locally, this works just fine:
rsync -r --delete --quiet /path/to/origin/* /path/to/remote
I am thus sure this is related to the action, somehow.
If it matters, I am using VSCode to push from local to git repo, but that should really not matter, also because the push of new files, or changes works just fine. Just deleting files removed does not work
I have read somewhere that rsync --delete does not work with wildcards, and that is clearly not true, since it works locally. BUT, amazingly and weirdly, when I do NOT use wildcard on the action, then it works. It makes not much sense to me why this would work locally, but not in a GitHub action.
I appreciate any help!
Beta Was this translation helpful? Give feedback.
All reactions