Update Sync.yml

This commit is contained in:
Vindicus999
2026-06-02 08:51:36 -04:00
parent 9cad31511e
commit 9efa9e47d6
+26 -29
View File
@@ -6,47 +6,44 @@ env:
UPSTREAM_BRANCH: "master" UPSTREAM_BRANCH: "master"
on: on:
workflow_dispatch:
schedule: schedule:
- cron: '0 0 * * *' - cron: '0 0 * * *'
workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout Forked Repository - name: Checkout repo
uses: actions/checkout@v3 uses: actions/checkout@v4
with: with:
upstream_repo: vindicus999/wivrn
fetch-depth: 0
token: ${{ env.WORKFLOW_TOKEN }} token: ${{ env.WORKFLOW_TOKEN }}
- name: Add Upstream Remote - name: Add upstream
run: git remote add upstream ${{ env.UPSTREAM_URL }}
- name: Fetch Upstream Changes
run: git fetch upstream
- name: Merge Changes and Push
run: | run: |
git checkout ${{ env.UPSTREAM_BRANCH }} git remote add upstream ${{ env.UPSTREAM_URL }}
git rebase upstream/${{ env.UPSTREAM_BRANCH }}
git push origin ${{ env.UPSTREAM_BRANCH }}
- name: Checkout stuff - name: Fetch all
uses: actions/checkout@master run: |
git fetch origin
git fetch upstream
- name: Merge master -> apk-build - name: Update sync branch
uses: devmasx/merge-branch@master run: |
with: git checkout -B master upstream/master
type: now git push origin master --force
from_branch: master
target_branch: apk-build
github_token: ${{ env.WORKFLOW_TOKEN }}
- name: Merge sneed -> apk-build - name: Copy master -> apk-build
uses: devmasx/merge-branch@master run: |
with: git checkout -B apk-build master
type: now git push origin apk-build --force
from_branch: sneed
target_branch: apk-build
github_token: ${{ env.WORKFLOW_TOKEN }}
- name: Apply sneed changes
run: |
git merge origin/sneed --no-edit
- name: Push apk build
run: |
git push origin build --force