Skip to content

Commit

Permalink
Add repo-sync GitHub Action to sync with mirror (#3598)
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr authored Jan 15, 2021
1 parent 4fb4004 commit d594d37
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/repo-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Repo Sync

on:
schedule:
- cron: "0 0 * * *"

jobs:
repo-sync:
name: Repo Sync
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: repo-sync/github-sync@v2
name: Sync repo to branch
with:
source_repo: ${{ secrets.SOURCE_REPO }}
source_branch: master
destination_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: repo-sync/pull-request@v2
name: Create pull request
with:
source_branch: ${{ secrets.INTERMEDIATE_BRANCH }}
destination_branch: master
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit d594d37

Please sign in to comment.