mirror of
https://github.com/egor-white/zaprett.git
synced 2025-12-23 19:59:45 +05:00
update workflow
This commit is contained in:
12
.github/workflows/workflow.yml
vendored
12
.github/workflows/workflow.yml
vendored
@@ -166,15 +166,23 @@ jobs:
|
|||||||
"changelog": "https://raw.githubusercontent.com/${{ github.repository }}/refs/heads/main/changelog.md"
|
"changelog": "https://raw.githubusercontent.com/${{ github.repository }}/refs/heads/main/changelog.md"
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
- name: Настроить git
|
- name: Configure git
|
||||||
run: |
|
run: |
|
||||||
git config --local user.email "action@github.com"
|
git config --local user.email "action@github.com"
|
||||||
git config --local user.name "GitHub Action"
|
git config --local user.name "GitHub Action"
|
||||||
|
|
||||||
- name: Закоммитить изменения
|
- name: Commit changelog and update.json
|
||||||
run: |
|
run: |
|
||||||
git add update.json update_extended.json update_tv.json changelog.md
|
git add update.json update_extended.json update_tv.json changelog.md
|
||||||
git commit -m "update update.json and changelog" || echo "Нет изменений для коммита"
|
git commit -m "update update.json and changelog" || echo "Нет изменений для коммита"
|
||||||
git push
|
git push
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Send bot post
|
||||||
|
run: |
|
||||||
|
text="
|
||||||
|
🔄 <b>Обновление модуля</b> ${{ inputs.version }}\n\n
|
||||||
|
📋 Изменения: ${{ inputs.release_changes }}\n\n
|
||||||
|
⬇️ <a href="https://github.com/${{ github.repository }}/releases/tag/${{ inputs.tag }}
|
||||||
|
">Скачать</a>"
|
||||||
|
curl https://api.telegram.org/bot${{ secrets.BOT_TOKEN }}/sendMessage?chat_id=1446986479\&text=$text
|
||||||
Reference in New Issue
Block a user