WalletWasabi / WasabiDoc

This is the Wasabi documentation, an archive of knowledge about the open-source, non-custodial and privacy-focused Bitcoin wallet for desktop.
https://docs.wasabiwallet.io
MIT License
99 stars 84 forks source link

Auto-update version number #1836

Closed turbolay closed 5 days ago

turbolay commented 5 days ago

This PR adds an action that is triggered from the main repository. The action takes as parameter a version number, then goes to config.ts and automatically replaces the version number.

Because of branch protections it cannot commit directly to master so instead it commits on a new branch, creates a PR, merges it with admin privileges.

For some reason, it is hard for an action to trigger another action, even with a merge like this. So the deploy action is then triggered through the api after the merge.

This PR works on my fork, maybe it will have some kind of permission issues here. It only uses the auto-generated access token from github