GH Actions: add a workflow to automatically deploy the wiki #5
+75
−0
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.
Replacement for #4, which didn't work as intended. Hopefully this one will.
What didn't work ?
github.event.head_commit.message
will be empty for PR events, which would make the dry-run for the deployment fail.So, now trying with a condition within the
with
for the Deploy step. 🤞🏻This commit introduces a workflow, which will:
main
branch.This way, the wiki is opened up to contributions via pull requests and is no longer limited to only edits made by committers.
A prominent warning is automatically added as a (hidden) comment at the top of each wiki file to warn committers not to edit the wiki file in the GitHub wiki interface. Any edits made via the GitHub wiki interface or by directly pushing to the wiki repository, will be lost and overwritten via this workflow the next time a change is pushed to the
main
branch of this repo.This commit also adds a
_Footer.md
file, which will automatically be displayed at the bottom of each wiki page to point out that the wiki is editable via PRs to this repo.Notes:
_wiki
directory - which is.gitignore
d - before pre-processing to reduce the risk of the source files being accidentally updated (and committed), which would undo the automation.main
branch will get the same commit message for the wiki as the last commit on themain
branch. For that reason, merge commits are not allowed in this repo and PRs with only one commit are strongly preferred.Future scope (upcoming):
Refs: