Skip to content

Commit

Permalink
chore: Add repo-sync actions (#705)
Browse files Browse the repository at this point in the history
See https://github.com/repo-sync/repo-sync

Also ensures CI runs on all branches, not just master
  • Loading branch information
robin-aws authored May 25, 2021
1 parent bbb38a0 commit 01ba9ba
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 8 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: test-clang-format

on:
pull_request:
branches:
- master
on: ["pull_request", "push"]

jobs:
build:
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
---
name: macOS build and test AWS Encryption SDK for C

on:
pull_request:
branches:
- master
on: ["pull_request", "push"]


jobs:
Expand Down
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 01ba9ba

Please sign in to comment.