mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
Create sync-upstream.yml
Update sync-upstream.yml Update sync-upstream.yml Update sync-upstream.yml Update sync-upstream.yml
This commit is contained in:
parent
6781e336f6
commit
f809b88cd5
1 changed files with 41 additions and 0 deletions
41
.github/workflows/sync-upstream.yml
vendored
Normal file
41
.github/workflows/sync-upstream.yml
vendored
Normal file
|
|
@ -0,0 +1,41 @@
|
||||||
|
name: Sync Upstream
|
||||||
|
|
||||||
|
env:
|
||||||
|
# Required, URL to upstream (fork base)
|
||||||
|
UPSTREAM_URL: "https://github.com/ohmyzsh/ohmyzsh.git"
|
||||||
|
# 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.GITHUB_TOKEN }}
|
||||||
|
# Optional, defaults to main
|
||||||
|
UPSTREAM_BRANCH: master
|
||||||
|
# Optional, defaults to UPSTREAM_BRANCH
|
||||||
|
DOWNSTREAM_BRANCH: master
|
||||||
|
# Optional fetch arguments
|
||||||
|
FETCH_ARGS: ""
|
||||||
|
# Optional merge arguments
|
||||||
|
MERG_ARGS: ""
|
||||||
|
# Optional toggle to spawn time logs (keeps action active)
|
||||||
|
SPAWN_LOGS: "false" # "true" or "false"
|
||||||
|
|
||||||
|
# This runs every day on 2000 UTC
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 20 * * *'
|
||||||
|
# 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
|
||||||
|
uses: dabreadman/sync-upstream-repo@v1.3.0
|
||||||
|
with:
|
||||||
|
upstream_repo: ${{ env.UPSTREAM_URL }}
|
||||||
|
upstream_branch: ${{ env.UPSTREAM_BRANCH }}
|
||||||
|
downstream_branch: ${{ env.DOWNSTREAM_BRANCH }}
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
fetch_args: ${{ env.FETCH_ARGS }}
|
||||||
|
merge_args: ${{ env.MERGE_ARGS }}
|
||||||
|
push_args: ${{ env.PUSH_ARGS }}
|
||||||
|
spawn_logs: ${{ env.SPAWN_LOGS }}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue