Otomatik Profil Güncelleyici #929
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 | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref }} | |
cancel-in-progress: true | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 00 00 * * * | |
push: | |
paths: | |
- guncelle.py | |
- .github/workflows/keyiflerolsun.yml | |
jobs: | |
keyiflerolsun: | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
permissions: | |
contents: write | |
steps: | |
- name : Depo Kontrolü | |
uses : actions/checkout@v4 | |
- name : Python 3.11.8 Yükle | |
uses : actions/setup-python@v5 | |
with : | |
python-version: 3.11.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 : | | |
zaman=$(TZ=":Europe/Istanbul" date "+%d-%m-%Y %H:%M:%S | TSİ") | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add -A | |
git commit --author="keyiflerolsun <[email protected]>" \ | |
-m "🕰 Otomatik Paylaşım » $zaman" -m "💾 Önceki » $GITHUB_SHA" | |
git push |