Pull from Remote Repo #84
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |