feat: make wiki content changeable by files #898
Closed
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.
Due to GitHub's way non-collaborator users can change wiki content if allowed through settings but it doesn't have any way of requiring an approval from the collaborators beforehand so I implemented a simple workaround through GitHub Actions workflows but it should be noted that it doesn't work two-way, which means if you change the content through web browser it won't sync the files. (I tried a couple solutions for syncing and tried to block changes that originates from the web browser as a Hail Mary but I couldn't find a proper way.)
Beware that in order for this workflow to work, there should be a repository secret named WIKI_TOKEN that contains a personal access token that has the following structure: