From 43e8da1a6f5e55aaac8741c8b9f1d5043f37d654 Mon Sep 17 00:00:00 2001 From: egor-white Date: Sat, 14 Jun 2025 17:23:45 +0300 Subject: [PATCH] update workflow --- .github/workflows/workflow.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 9cf148e..ea7d7e5 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -166,15 +166,23 @@ jobs: "changelog": "https://raw.githubusercontent.com/${{ github.repository }}/refs/heads/main/changelog.md" } EOF - - name: Настроить git + - name: Configure git run: | git config --local user.email "action@github.com" git config --local user.name "GitHub Action" - - name: Закоммитить изменения + - name: Commit changelog and update.json run: | git add update.json update_extended.json update_tv.json changelog.md git commit -m "update update.json and changelog" || echo "Нет изменений для коммита" git push env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: Send bot post + run: | + text=" + 🔄 Обновление модуля ${{ inputs.version }}\n\n +📋 Изменения: ${{ inputs.release_changes }}\n\n +⬇️ Скачать" + curl https://api.telegram.org/bot${{ secrets.BOT_TOKEN }}/sendMessage?chat_id=1446986479\&text=$text \ No newline at end of file