Skip to content

sync-upstream

sync-upstream #2

Workflow file for this run

name: sync-upstream
on:
schedule:
- cron: "17 2 * * *"
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: zexi/dev
- name: Configure git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Sync upstream dev into zexi/dev
run: |
git remote add upstream https://github.com/anomalyco/opencode.git
git fetch upstream dev
git merge --no-edit upstream/dev
git push origin HEAD:zexi/dev