📖 GitHub Action to sync a folder to the GitHub wiki
APACHE-2.0 License
Sike! 🤯 Actually that feature where we rewrite links is going in v5 since it's a breaking change. Hopefully I didn't break your workflow! 😜
Full Changelog: https://github.com/Andrew-Chen-Wang/github-wiki-action/compare/v4...v4.4.0
Published by jcbhmr over 1 year ago
The big highlight is that now README.md in the wiki folder in your GitHub repo will be deployed to Home.md on the GitHub wiki! This means you can use the same conventions like README.md as an "index page" for GitHub web-ui and expect that to work flawlessly on the github wiki too. Also included are link rewrites to make it so that [](hello.md)
links that work in GitHub web-ui become [](hello)
links that work for the GitHub wiki UI!
Full Changelog: https://github.com/Andrew-Chen-Wang/github-wiki-action/compare/v4...v4.3.0
Published by jcbhmr over 1 year ago
🎉 New feature! We added a wiki_url
output similar to the https://github.com/actions/deploy-pages page_url
output. Yes, it's snake_case instead of kebab-case. That's to conform with the existing convention from actions/deploy-pages. 🤷♂️
Full Changelog: https://github.com/Andrew-Chen-Wang/github-wiki-action/compare/v4...v4.2.0
Published by jcbhmr over 1 year ago
Fixed silly if [[ -z $RUNNER_DEBUG ]]
to be if [[ -n $RUNNER_DEBUG ]]
so now you'll only get verbose debug logging if you actually enable debug mode, not only in non-debug mode! This is an oopsie bugfix. #58
Full Changelog: https://github.com/Andrew-Chen-Wang/github-wiki-action/compare/v4...v4.1.1
Published by jcbhmr over 1 year ago
Full Changelog: https://github.com/Andrew-Chen-Wang/github-wiki-action/compare/v4...v4.1.0
Published by jcbhmr over 1 year ago
This is a pretty massive release! @jcbhmr made a lot of changes to modernize this action and bring it more in-line with other actions. For instance, now we use with:
instead of env:
to pass inputs to the script. We also have dropped rsync! We now use a trick with $GIT_DIR
and $GIT_WORK_TREE
to commit your files without ever copying or moving them! Isn't that cool! 😎 Since we dropped rsync, we no longer need to use Docker! #32 That means you can now use this action on Windows if you're using v4. 👍
We've also made it so that the ${{ github.token }}
will be picked up by default just like all your favorite official github.com/actions Actions!
If you're still using v3, here's a quick guide to transition to using v4. We hope you like the new interface!
GH_TOKEN: ${{ github.token }}
or GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
, you can remove it. We now use that token by default if none is provided. If you need to provide a custom PAT, use with:
and then token: ${{ secrets.PAT }}
.with:
path:
option. You no longer need a trailing slash like you did when we used rsync. 😁Update wiki ${{ github.sha }}
. If you want to change this, you can use commit-message: Hi!
.$GIT_AUTHOR_NAME
and other GIT_*
env vars..gitignore
syntax for our ignore:
input. This used to be a space-separated EXCLUDED_FILES
list. Make sure you separate your ignore list by newlines! You can use the |
pipe to get a multiline string in YAML.Here's an example of the transition:
- uses: Andrew-Chen-Wang/github-wiki-action@v2
env:
WIKI_DIR: my-wiki/
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_MAIL: ${{ secrets.YOUR_EMAIL }}
GH_NAME: ${{ github.repository_owner }}
EXCLUDED_FILES: "Special-page.md Hidden.md"
- uses: Andrew-Chen-Wang/github-wiki-action@v4
with:
path: my-wiki
ignore: |
Special-page.md
Hidden.md
🆘 If you have any questions, you can open an Issue or open a Discussion! We'd be happy to help you!
update-tags.yml
workflow by @jcbhmr in https://github.com/Andrew-Chen-Wang/github-wiki-action/pull/42
github-server-url
option by @jcbhmr in https://github.com/Andrew-Chen-Wang/github-wiki-action/pull/43
Full Changelog: https://github.com/Andrew-Chen-Wang/github-wiki-action/compare/v3...v4.0.0
Published by Andrew-Chen-Wang over 2 years ago
Full Changelog: https://github.com/Andrew-Chen-Wang/github-wiki-action/compare/v2...v3
Published by Andrew-Chen-Wang over 4 years ago
Published by Andrew-Chen-Wang over 4 years ago
Allows GITHUB_TOKEN if REPO is allowed to be the current one. If the wiki repo is different form the current, you must specify a PAT.