Skip to content

Commit

Permalink
chore: Add repo-sync actions
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-aws committed May 25, 2021
1 parent 402632d commit f546e7d
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:
workflow_dispatch: # allows triggering this manually through the Actions UI

jobs:
repo-sync:
name: Repo Sync
environment: 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 f546e7d

Please sign in to comment.