diff --git a/.github/workflows/Sync.yml b/.github/workflows/Sync.yml index 82774f60..bd6e1d26 100644 --- a/.github/workflows/Sync.yml +++ b/.github/workflows/Sync.yml @@ -1,4 +1,4 @@ -name: Sync Upstream +name: Sync Fork with Upstream env: UPSTREAM_URL: "https://github.com/wivrn/wivrn.git" @@ -7,7 +7,7 @@ env: on: schedule: - - cron: '0 5/6 * * *' + - cron: '0 0 * * *' workflow_dispatch: jobs: @@ -24,13 +24,22 @@ jobs: - name: Checkout stuff uses: actions/checkout@master - - name: Merge master -> apk-build - uses: devmasx/merge-branch@master + - name: Checkout Forked Repository + uses: actions/checkout@v3 with: - type: now - from_branch: master - target_branch: apk-build - github_token: ${{ env.WORKFLOW_TOKEN }} + token: ${{ env.WORKFLOW_TOKEN }} + + - name: Add Upstream Remote + run: git remote add upstream ${{ env.UPSTREAM_URL }} + + - name: Fetch Upstream Changes + run: git fetch upstream + + - name: Rebase master -> apk-build + run: | + git checkout apk-build + git rebase upstream/master + git push origin apk-build - name: Merge sneed -> apk-build uses: devmasx/merge-branch@master