Minecraft-Console-Client/.github/workflows/sync-upstream.yml
2026-06-29 00:35:59 +03:00

38 lines
938 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Sync Upstream
on:
schedule:
- cron: "0 * * * *" # Her saat başı çalışır
workflow_dispatch: # İstersen elle de çalıştırabilirsin
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout fork
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Add upstream
run: git remote add upstream https://github.com/MCCTeam/Minecraft-Console-Client.git
- name: Fetch upstream
run: git fetch upstream
- name: Merge upstream (upstream wins conflicts)
run: |
git checkout master
git merge upstream/master -X theirs --no-edit
- name: Push changes
run: git push origin master