diff options
author | 2019-09-23 23:24:49 +0700 | |
---|---|---|
committer | 2019-09-23 23:24:49 +0700 | |
commit | 52a2e379f8cecda8f8e60741c9743fc94d51d6bd (patch) | |
tree | 6214a7105a21b7b663a2986d152dae0b2c88044e /.github/workflow/repo-sync.yml | |
parent | Enable community recipes (diff) | |
download | ferdium-app-52a2e379f8cecda8f8e60741c9743fc94d51d6bd.tar.gz ferdium-app-52a2e379f8cecda8f8e60741c9743fc94d51d6bd.tar.zst ferdium-app-52a2e379f8cecda8f8e60741c9743fc94d51d6bd.zip |
Setup repo-sync workflow
Diffstat (limited to '.github/workflow/repo-sync.yml')
-rw-r--r-- | .github/workflow/repo-sync.yml | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflow/repo-sync.yml b/.github/workflow/repo-sync.yml new file mode 100644 index 000000000..fce0721c7 --- /dev/null +++ b/.github/workflow/repo-sync.yml | |||
@@ -0,0 +1,25 @@ | |||
1 | name: Repo Sync | ||
2 | |||
3 | on: | ||
4 | schedule: | ||
5 | - cron: "*/15 * * * *" | ||
6 | |||
7 | jobs: | ||
8 | repo-sync: | ||
9 | name: Repo Sync | ||
10 | runs-on: ubuntu-latest | ||
11 | steps: | ||
12 | - uses: actions/checkout@v1 | ||
13 | - uses: repo-sync/github-sync@v2 | ||
14 | name: Sync repository to branch | ||
15 | with: | ||
16 | source_repo: ${{ secrets.SOURCE_REPO }} | ||
17 | source_branch: "master" | ||
18 | destination_branch: ${{ secrets.INTERMEDIATE_BRANCH }} | ||
19 | github_token: ${{ secrets.GITHUB_TOKEN }} | ||
20 | - uses: repo-sync/pull-request@v2 | ||
21 | name: Create pull request | ||
22 | with: | ||
23 | source_branch: ${{ secrets.INTERMEDIATE_BRANCH }} | ||
24 | destination_branch: "master" | ||
25 | github_token: ${{ secrets.GITHUB_TOKEN }} | ||