Skip to content

Commit

Permalink
Create repo-sync.yml (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sheilaXu authored Mar 15, 2022
1 parent 02bffff commit a05e340
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 8 * * *" # every day at 8am UTC

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: main
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: main
github_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a05e340

Please sign in to comment.