Поменял папку
This commit is contained in:
parent
412dfbffac
commit
4b671736ce
29
.gitea/workflows/update-readme.yml
Normal file
29
.gitea/workflows/update-readme.yml
Normal file
@ -0,0 +1,29 @@
|
||||
name: Auto-update README
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
update-readme:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Клонировать репозиторий
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
token: ${{ secrets.ACTIONS_TOKEN }}
|
||||
|
||||
- name: Запустить Python-скрипт
|
||||
run: python3 scripts/update_readme.py
|
||||
|
||||
- name: Закоммитить изменения, если есть
|
||||
run: |
|
||||
git config user.name "README Bot"
|
||||
git config user.email "bot@example.com"
|
||||
if git diff --quiet README.md; then
|
||||
echo "Изменений нет"
|
||||
else
|
||||
git add README.md
|
||||
git commit -m "Автообновление README [skip ci]"
|
||||
git push
|
||||
fi
|
||||
Loading…
x
Reference in New Issue
Block a user