43 lines
1.0 KiB
YAML
43 lines
1.0 KiB
YAML
name: Sync Upstream
|
|
|
|
env:
|
|
UPSTREAM_URL: "https://github.com/wivrn/wivrn.git"
|
|
WORKFLOW_TOKEN: ${{ secrets.DOWNSTREAM_GITHUB_TOKEN }}
|
|
UPSTREAM_BRANCH: "master"
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 5/6 * * *'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: GitHub Sync to Upstream Repository
|
|
uses: dabreadman/sync-upstream-repo@v1.3.0
|
|
with:
|
|
upstream_repo: ${{ env.UPSTREAM_URL }}
|
|
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
|
|
token: ${{ env.WORKFLOW_TOKEN }}
|
|
|
|
- name: Checkout stuff
|
|
uses: actions/checkout@master
|
|
|
|
- name: Merge master -> apk-build
|
|
uses: devmasx/merge-branch@master
|
|
with:
|
|
type: now
|
|
from_branch: master
|
|
target_branch: apk-build
|
|
github_token: ${{ env.WORKFLOW_TOKEN }}
|
|
|
|
- name: Merge sneed -> apk-build
|
|
uses: devmasx/merge-branch@master
|
|
with:
|
|
type: now
|
|
from_branch: sneed
|
|
target_branch: apk-build
|
|
github_token: ${{ env.WORKFLOW_TOKEN }}
|
|
|