Github action to sync your Forks.
This action uses octokit and the GitHub API to automatically creates and merges a pull request with the head defined by ownwer:head into the base defined by base. If you create a PR in the same repository you can omit the owner parameter.
name: Sync Fork
on:
schedule:
- cron: '*/30 * * * *'
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: TG908/fork-sync@v1.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
owner: llvm
base: master
head: master| name | Optional | Default | description |
|---|---|---|---|
| owner | β | $current_repo_owner | Owner of the forked repository |
| github_token | β | Token to access the Github API | |
| head | β | master | Head branch |
| base | β | master | Base branch |
| merge_method | β | merge | merge, rebase or squash |
| pr_title | β | Fork Sync | Title of the created pull request |
| pr_message | β | Message of the created pull request |