Compare commits
2 Commits
4b671736ce
...
ed584ac3de
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed584ac3de | ||
|
|
f710301c00 |
@ -1,29 +0,0 @@
|
||||
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