Configure build actions
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
version: "1"
|
||||||
|
rules:
|
||||||
|
- base: master
|
||||||
|
upstream: WiVRn:master
|
||||||
|
mergeMethod: hardreset
|
||||||
|
|
||||||
+23
-32
@@ -1,4 +1,4 @@
|
|||||||
name: Sync Fork with Upstream
|
name: Sync Upstream
|
||||||
|
|
||||||
env:
|
env:
|
||||||
UPSTREAM_URL: "https://github.com/wivrn/wivrn.git"
|
UPSTREAM_URL: "https://github.com/wivrn/wivrn.git"
|
||||||
@@ -6,46 +6,37 @@ env:
|
|||||||
UPSTREAM_BRANCH: "master"
|
UPSTREAM_BRANCH: "master"
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 * * *'
|
- cron: '0 5/6 * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: GitHub Sync to Upstream Repository
|
||||||
uses: actions/checkout@v4
|
uses: dabreadman/sync-upstream-repo@v1.3.0
|
||||||
with:
|
with:
|
||||||
upstream_repo: vindicus999/wivrn
|
upstream_repo: ${{ env.UPSTREAM_URL }}
|
||||||
fetch-depth: 0
|
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
|
||||||
token: ${{ env.WORKFLOW_TOKEN }}
|
token: ${{ env.WORKFLOW_TOKEN }}
|
||||||
|
|
||||||
- name: Add upstream
|
- name: Checkout stuff
|
||||||
run: |
|
uses: actions/checkout@master
|
||||||
git remote add upstream ${{ env.UPSTREAM_URL }}
|
|
||||||
|
|
||||||
- name: Fetch all
|
- name: Merge master -> apk-build
|
||||||
run: |
|
uses: devmasx/merge-branch@master
|
||||||
git fetch origin
|
with:
|
||||||
git fetch upstream
|
type: now
|
||||||
|
from_branch: master
|
||||||
|
target_branch: apk-build
|
||||||
|
github_token: ${{ env.WORKFLOW_TOKEN }}
|
||||||
|
|
||||||
- name: Update sync branch
|
- name: Merge sneed -> apk-build
|
||||||
run: |
|
uses: devmasx/merge-branch@master
|
||||||
git config --global user.email "sneed@feedandse.edu"
|
with:
|
||||||
git config --global user.name "Sneed Chuckinson"
|
type: now
|
||||||
git checkout -B sync upstream/master
|
from_branch: sneed
|
||||||
git push origin sync --force
|
target_branch: apk-build
|
||||||
|
github_token: ${{ env.WORKFLOW_TOKEN }}
|
||||||
|
|
||||||
- name: Copy master -> apk-build
|
|
||||||
run: |
|
|
||||||
git checkout -B apk-build sync
|
|
||||||
git push origin apk-build --force
|
|
||||||
|
|
||||||
- name: Apply sneed changes
|
|
||||||
run: |
|
|
||||||
git merge origin/sneed --no-edit
|
|
||||||
|
|
||||||
- name: Push apk build
|
|
||||||
run: |
|
|
||||||
git push origin apk-build --force
|
|
||||||
|
|||||||
Reference in New Issue
Block a user