项目作者: sudo-bot

项目描述 :
Sync your GitHub forks
高级语言: Shell
项目地址: git://github.com/sudo-bot/action-fork-sync.git
创建时间: 2020-04-04T13:01:41Z
项目社区:https://github.com/sudo-bot/action-fork-sync

开源协议:Mozilla Public License 2.0

下载


Sync your forks

This action locks a pull-request

Example usage

  1. - name: sync my fork
  2. uses: sudo-bot/action-fork-sync@v1.0.1
  3. with:
  4. branches: master, STABLE, next
  5. source-url: "https://${{ secrets.BOT_TOKEN }}:x-oauth-basic@github.com/orgname/officialproject.git"
  6. # Give repo scope to token and access to myname/officialproject-fork for a token user != myname (eg: a bot)
  7. fork-url: "https://${{ secrets.BOT_TOKEN }}:x-oauth-basic@github.com/myname/officialproject-fork.git"
  8. dry-run: "true" # remove this line to make sync effective
  9. clone-depth: "100" # optional, defaults to 100
  10. sync-method: "fast-forward" # optional, defaults to "fast-forward". Can be "rebase", "merge" or "fast-forward".