-
Notifications
You must be signed in to change notification settings - Fork 20
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
Possibility to remove files using this action #11
Comments
Indeed it is something we can imagine. Personally I'm not actually using it in this way but linked with the release notes action. This means every time I will have a new folder with only a file name to upload to the wiki. What do you imagine exactly? Link the action to a folder already containing a git repository and just push it? |
Chiming in - Our use case for this action would be similar. We work on a bunch of different small projects, and use the wiki to keep track of project specific info too verbose for the README. Rather than editing the wiki through the Github UI, we'd like to be able to just update the wiki's Markdown files in our normal vscode workflow and use wiki-page-creator-action to update the wiki on commit/PR/etc. tl;dr - what @didnotwant says above, but some concrete examples from our workflow. |
@pgcath @didnotwant You can use my GH action here: https://github.com/Andrew-Chen-Wang/github-wiki-action using rsync. Pages are deleted since I'm just linking a directory in a repository (any repository you specify) and moving it to the git source of the wiki. Also, it doesn't have to be Markdown files. Same features and PAT not needed. Edit: you can still use a PAT. One of the features is rsyncing from a different repository which required a PAT. |
Thanks @Andrew-Chen-Wang, indeed I think the rsync it is a quite brilliant solution. I will make an update on our action using it too 👍 |
Just for your information @Andrew-Chen-Wang, as you are saying that your action is not using the |
@mmornati Thanks! The action is able to use a PAT. I didn't have a private repository with a PRO account to enable wiki, so I didn't know you needed a PAT, but it works nonetheless for both GitHub token and PAT right now. |
I know that this action has "creator" in its name but how about adding a functionality which removes files when they were removed from the repository? Another point of view: it reflects the current state of the markdown files in repository to Wiki.
Why?
I’d like to keep all the the history about Wiki changes in pull requests. It’s way more consistent and I only want to introduce every change to Wiki using pull requests. I don’t want to use GitHub’s GUI to perform any change.
Maybe such a possibility exists but I couldn’t find a way to do it?
Maybe it’s out of scope of what this tool was invented for?
What do you think about that?
The text was updated successfully, but these errors were encountered: