Update Sync.yml

This commit is contained in:
Vindicus999
2026-06-02 08:51:36 -04:00
parent 637754517c
commit 478fd88cd4
+16 -6
View File
@@ -1,4 +1,4 @@
name: Sync Upstream name: Sync Fork with Upstream
env: env:
UPSTREAM_URL: "https://github.com/wivrn/wivrn.git" UPSTREAM_URL: "https://github.com/wivrn/wivrn.git"
@@ -7,20 +7,30 @@ env:
on: on:
schedule: schedule:
- cron: '0 5/6 * * *' - cron: '0 0 * * *'
workflow_dispatch: workflow_dispatch:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: GitHub Sync to Upstream Repository - name: Checkout Forked Repository
uses: dabreadman/sync-upstream-repo@v1.3.0 uses: actions/checkout@v3
with: with:
upstream_repo: ${{ env.UPSTREAM_URL }}
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
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: Merge Changes and Push
run: |
git checkout ${{ env.UPSTREAM_BRANCH }}
git rebase upstream/${{ env.UPSTREAM_BRANCH }}
git push origin ${{ env.UPSTREAM_BRANCH }}
- name: Checkout stuff - name: Checkout stuff
uses: actions/checkout@master uses: actions/checkout@master