diff --git a/.gitea/workflows/build-and-push.yml b/.gitea/workflows/build-and-push.yml index 0aa120c..4f91875 100644 --- a/.gitea/workflows/build-and-push.yml +++ b/.gitea/workflows/build-and-push.yml @@ -43,6 +43,7 @@ jobs: echo "${{ secrets.GIT_TOKEN }}" | docker login dungeonsiege.synology.me -u ${{ secrets.GIT_USERNAME }} --password-stdin - name: Build and Push + id: build if: steps.version_check.outputs.changed == 'true' run: | REGISTRY="dungeonsiege.synology.me/poignatov/play-life" @@ -53,4 +54,45 @@ jobs: # Пушим оба тега docker push $REGISTRY:latest - docker push $REGISTRY:$VER \ No newline at end of file + docker push $REGISTRY:$VER + + - name: Send Telegram notification (success) + if: success() && steps.version_check.outputs.changed == 'true' + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + message: | + ✅ Сборка успешна! + + Проект: play-life + Версия: ${{ steps.version_check.outputs.current }} + Ветка: ${{ github.ref_name }} + Коммит: ${{ github.sha }} + + - name: Send Telegram notification (failure) + if: failure() + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + message: | + ❌ Сборка завершилась с ошибкой! + + Проект: play-life + Версия: ${{ steps.version_check.outputs.current }} + Ветка: ${{ github.ref_name }} + Коммит: ${{ github.sha }} + + - name: Send Telegram notification (skipped) + if: steps.version_check.outputs.changed == 'false' + uses: appleboy/telegram-action@master + with: + to: ${{ secrets.TELEGRAM_TO }} + token: ${{ secrets.TELEGRAM_TOKEN }} + message: | + ℹ️ Сборка пропущена + + Проект: play-life + Версия не изменилась: ${{ steps.version_check.outputs.current }} + Ветка: ${{ github.ref_name }} \ No newline at end of file diff --git a/VERSION b/VERSION index bea438e..1809198 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.3.1 +3.4.0