{"repo":"gleich/gh_fsync","free":true,"listed":false,"github":"https://github.com/gleich/gh_fsync","clone":"git clone https://github.com/gleich/gh_fsync.git","description":"🔄 GitHub action to sync files across repos in GitHub","language":"Go","stars":19,"topics":["sync-files","gh-fsync","file","github-actions"],"license":"MIT","category":"workflow-automation","readme_excerpt":"gh fsync 🔄 GitHub action to sync files across repos in GitHub ❓ What is gh fsync gh fsync is a simple, configurable, and blazing fast way to sync files in your repository with files from another repository. ⚙️ Configuration First create a file in one of the following locations inside of your repository: - /fsync.yml - /fsync.yaml - /.fsync.yml - /.fsync.yaml - /.github/fsync.yml - /.github/fsync.yml Now that you have your file lets go over the syntax. 🌍 Global replace Replace certain text for all source files listed under the files section. Below is an example: 📁 Files List all of the files you want to sync. path: is the file path in your repo and source: is the URL on GitHub for the file. Below is an example: You can even replace values specific to a file. Below is an example: A file specific replace will override any global replace with the same before . So in the case shown below the replace of project name for the CONTRIBUTING.md file will override the global replace defined before. If you would like to completely ignore the global replace for that file add ignore global replace: true to the file. This is optional and an example is shown down in the examples section. 💬 Commit message Define the commit message to use when updating the files. The default commit message is Update via sync . Below is an example ✨ Example 🤖 GitHub action Use the following for the GitHub action. If you want to sync files from the .github folder you need to to create a personal access token","default_branch":null,"files":null,"tree":[],"storefront":"/r/gleich","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gleich/gh_fsync/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}