2021-10-24 03:19:09 +02:00
|
|
|
# Template to sync with upstream
|
|
|
|
name: Sync Upstream
|
|
|
|
|
|
|
|
env:
|
|
|
|
# Required, URL to upstream (fork base)
|
2021-12-23 00:24:35 +01:00
|
|
|
UPSTREAM_URL: "https://github.com/limaceous-bushwhacker/zspotify.git"
|
2021-10-24 03:19:09 +02:00
|
|
|
# Required, token to authenticate bot, could use ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
# Over here, we use a PAT instead to authenticate workflow file changes.
|
|
|
|
WORKFLOW_TOKEN: ${{ secrets.WORKFLOW_TOKEN }}
|
|
|
|
# Required, is usually "master" or "main"
|
|
|
|
UPSTREAM_BRANCH: "main"
|
|
|
|
# Optional, defaults to UPSTREAM_BRANCH
|
|
|
|
DOWNSTREAM_BRANCH: ""
|
|
|
|
# Optional merge arguments
|
|
|
|
MERGE_ARGS: ""
|
|
|
|
# Optional push arguments
|
|
|
|
PUSH_ARGS: ""
|
|
|
|
|
|
|
|
# This runs every day on 1801 UTC
|
|
|
|
on:
|
|
|
|
# Or on push, if for mirror it runs on workflow setup and changes
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: '1 18 * * *'
|
|
|
|
# Allows manual workflow run (must in default branch to work)
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: GitHub Sync to Upstream Repository
|
2022-02-04 20:44:58 +01:00
|
|
|
uses: dabreadman/sync-upstream-repo@v1.1.0.b
|
2021-10-24 03:19:09 +02:00
|
|
|
with:
|
|
|
|
upstream_repo: ${{ env.UPSTREAM_URL }}
|
|
|
|
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
|
|
|
|
downstream_branch: ${{ env.DOWNSTREAM_BRANCH }}
|
|
|
|
token: ${{ env.WORKFLOW_TOKEN }}
|
|
|
|
merge_args: ${{ env.MERGE_ARGS }}
|
|
|
|
push_args: ${{ env.PUSH_ARGS }}
|
|
|
|
|