Files
WiVRn/.github/workflows/Sync.yml
T
2026-12-02 01:03:32 -05:00

41 lines
964 B
YAML

name: Sync Fork with Upstream
env:
UPSTREAM_URL: "https://github.com/wivrn/wivrn.git"
WORKFLOW_TOKEN: ${{ secrets.DOWNSTREAM_GITHUB_TOKEN }}
UPSTREAM_BRANCH: "master"
on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ env.WORKFLOW_TOKEN }}
- name: Add upstream
run: |
git remote add upstream ${{ env.UPSTREAM_URL }}
- name: Update sync branch
run: |
git config --global user.email "sneed@feedandse.edu"
git config --global user.name "Sneed Chuckinson"
git checkout apk-build
git reset --hard upstream/master
- name: Apply sneed changes
run: |
git merge origin/sneed --no-edit
- name: Push apk build
run: |
git push origin apk-build --force