-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See https://github.com/repo-sync/repo-sync Also ensures CI runs on all branches, not just master
- Loading branch information
Showing
3 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |