Otomatik Profil Güncelleyici #651
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
# Bu araç @keyiflerolsun tarafından | @KekikAkademi için yazılmıştır. | |
name: Otomatik Profil Güncelleyici | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
on: | |
schedule: | |
- cron: "00 00 * * *" | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
jobs: | |
keyiflerolsun: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name : Depo Kontrolü | |
uses : actions/checkout@v3 | |
- name : Python 3.10.8 Yükle | |
uses : actions/setup-python@v4 | |
with : | |
python-version: "3.10.8" | |
- name : Python Sürümünü Göster | |
run : python -c "import sys; print(sys.version)" | |
- name : Gereksinimleri Yükle | |
run : | | |
python -m pip install --upgrade pip | |
pip install -Ur requirements.txt | |
- name : Betiği Çalıştır | |
run : | | |
python guncelle.py | |
- name : Değişiklik Kontrolü | |
id : degisiklik_kontrol | |
run : | | |
git diff --quiet . || echo "degisiklik=true" >> $GITHUB_OUTPUT | |
- name : Depoyu Güncelle | |
if : steps.degisiklik_kontrol.outputs.degisiklik == 'true' | |
run : | | |
git config --global user.name "keyiflerolsun" | |
git config --global user.email "keyiflerolsun@gmail.com" | |
git add -A | |
zaman=$(TZ=":Europe/Istanbul" date "+%d-%m-%Y %H:%M:%S | TSİ") | |
git commit -m "🕰 Otomatik Paylaşım » $zaman" -m "💾 Önceki » $GITHUB_SHA" | |
git push |