Skip to content

Update the publish wiki action that can work without the need of input variables #8

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

Open
sanG-github opened this issue Jan 4, 2024 · 0 comments

Comments

@sanG-github
Copy link

sanG-github commented Jan 4, 2024

Why

The github-wiki-action action is a good alternative for our current publish-wiki-action as it doesn't require any input variables as well as the PAT, which helps us to use the action easier and less confused by the values of current input variables.

🔑 In order to successfully push to the .wiki.git Git repository that backs the wiki tab, we need the contents: write permission! Make sure you have something like shown above either for your entire workflow, or just for one particular job. This will give the auto-generated ${{ github.token }} that we use by default permission to push to the .wiki.git repo of the repository that the action runs on.

As described in the action documentation, we don't need to generate the Personal Access Token (PAT) to push the wiki, just simply leverage the token from Github (${{ github.token }}).

Related thread on Slack: https://nimble-co.slack.com/archives/CSQG2QXFX/p1698199200680339.

Who Benefits?

Everyone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant