How to updade repo wiki from Github Actions #25929
-
Is there an easy way to update repo wiki from Github Actions? I’ve tried cloning it but it does not work:
I am getting Warning: Permanently added the RSA host key for IP address ‘140.82.114.4’ to the list of known hosts. ***@github.com: Permission denied (publickey). with https I am getting fatal: could not read Password for ‘https://***@github.com’: No such device or address Is there an easy way to get wiki related to the repo ? E.g. when one checks out repo, could there be an option to checkout wiki too ? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
Hi @JacekPliszka, Glad to see you in Github Community Forum! Github repo wiki is actually a repo with named reponame.wiki, hence you can specify the wiki repo name to actions/checkout to checkout it. Code sample as below:
Please refer to my workflow for more details. BTW, you can also search existing actions in markeplace here, for example, use action ‘SwiftDocOrg/github-wiki-publish-action@v1’ to publish content to wiki. Hope it clear and helpful! |
Beta Was this translation helpful? Give feedback.
-
Thank you, I should’ve specified a bit more what I needed but with your suggestion it worked great. What I needed is to have both base repo and wiki at the same time. But in addition to repository parameter there is path parameter so everything works great now. |
Beta Was this translation helpful? Give feedback.
-
Hi @JacekPliszka, Thanks for your reply! Yes, you can use path parameter of actions/checkout to store base repo and wiki repo seperately. Glad to know it works for you and issue is gone. Happy coding! |
Beta Was this translation helpful? Give feedback.
-
If I now understand this right, should the |
Beta Was this translation helpful? Give feedback.
-
I did not have to do anything - all I did was
|
Beta Was this translation helpful? Give feedback.
-
Hi @Andre601, Yes, Hi @JacekPliszka, Since the issue is resloved, could you please help to mark the answer? It could be helpful to other who has same queries. Let me know if you have any questions. Thanks. |
Beta Was this translation helpful? Give feedback.
-
good to know, However do I face the issue, that the action I use doesn’t work with the |
Beta Was this translation helpful? Give feedback.
-
Hi @Andre601, The action Actually in my example, you can find GITHUB_TOKEN can push update to wiki repo. You can follow it, submit your changes to wiki. Thanks. |
Beta Was this translation helpful? Give feedback.
I did not have to do anything - all I did was