-
-
Notifications
You must be signed in to change notification settings - Fork 386
bug: 🐝 The clean-exclude option is not just for cleaning #1827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Happy to make some changes to the documentation! Do you have any suggestions? |
Trying to come up with a better description of clean-exclude I find it difficult to correct it. Two options:
(but I'm not very familiar with rsync) What do you think? Both are not really backwards compatible, but option 2. atleast corrects the described behaviour. |
I like the name exclude, the |
Sure, happy to give it a go. |
Can I also exclude certain folders from being cleaned ? |
Yes, the exclude option also works for folders. |
Uh oh!
There was an error while loading. Please reload this page.
Describe the bug
When setting the clean-exclude option, I was expecting it to only count for a 'clean' step/phase. But there is only one step (rsync the --delete option is just added when clean:true).
The clean-exclude is just a general exclude. If other people exclude files, these files will also not be copied over.
I think this can be fixed with a slight change to the documentation.
Reproduction Steps
Context:
I wanted to deploy to a subfolder with the commit sha as a name for each commit.
Example:
This only leaves the index.html. Because the ${{github.sha}} i want to deploy is also part of the clean-exclude list, it's never copied over by rsync.
Logs
/usr/bin/rsync -q -av --checksum --progress /home/runner/work/action-tester/action-tester/dist/. github-pages-deploy-action-temp-deployment-folder --delete --exclude index.html --exclude pr-preview/ --exclude 4521fe79967bbb5ce2b3fb13ebc3483375bfbd3f --exclude 001e1f753cc025ef2490ae9b12282b20ed890dfe --exclude 8deac04a32622e86ddc7b560de692a084411fd33 --exclude 22aece381e3fb637c634a1270768462dba48ef7c --exclude 96f1ebeef5b14832e012bd97a628db11ac2be5f4 --exclude CNAME --exclude .nojekyll --exclude .ssh --exclude .git --exclude .github Checking if there are files to commit… Running post deployment cleanup jobs… 🗑️
Workflow
Additional Comments
btw, love this action! Thank you so much. Let me know if I can help with a pull request.
The text was updated successfully, but these errors were encountered: