Skip to content

Commit

Permalink
Add repo-sync action to pull updates from the public repo
Browse files Browse the repository at this point in the history
  • Loading branch information
robin-aws committed May 21, 2021
1 parent 2e3ca4c commit f8cdaed
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 f8cdaed

Please sign in to comment.