Files
clawgod/.gitea/workflows/sync.yml
T

27 lines
664 B
YAML

name: Upstream Sync
on:
schedule:
- cron: '@hourly' # Every hour (Gitea shorthand)
workflow_dispatch: # Manual trigger
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
- name: Sync Upstream
run: |
git config user.email "omar@git.qomar.pw"
git config user.name "Gitea Action"
git remote add upstream https://github.com/0Chencc/clawgod.git
git fetch upstream main
git checkout main
git reset --hard upstream/main
git push origin main --force