Skip to content

Pull from Remote Repo #84

Pull from Remote Repo

Pull from Remote Repo #84

name: Pull from Remote Repo
on:
schedule:
- cron: "*/2 * * * *" # Her 2 dakikada bir çalıştır
jobs:
pull_sync:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout Main Repo
uses: actions/checkout@v4
with:
fetch-depth: 0 # Tüm geçmişi al
- name: Add Remote (Uzak Repo)
run: |
git remote add upstream https://github.com/TRON-Bioinformatics/testp.git
git fetch upstream # Uzak repodaki branch'ları güncelle
- name: Pull Latest Changes
run: |
git checkout upstream/main
git pull upstream main # Ana branch için pull işlemi
git checkout upstream/dev
git pull upstream dev # Dev branch için pull işlemi
- name: Check Git Status
run: git status