Skip to content

Otomatik Profil Güncelleyici #929

Otomatik Profil Güncelleyici

Otomatik Profil Güncelleyici #929

Workflow file for this run

# 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