feat: add workflow_dispatch to deploy.yml and debug secrets

This commit is contained in:
2026-01-25 20:09:18 +03:00
parent 220b24e867
commit 2ee1977956

View File

@@ -4,6 +4,7 @@ on:
pull_request: pull_request:
types: [closed] types: [closed]
branches: [ main ] branches: [ main ]
workflow_dispatch:
jobs: jobs:
deploy: deploy:
@@ -12,7 +13,9 @@ jobs:
concurrency: concurrency:
group: production-deploy group: production-deploy
cancel-in-progress: false cancel-in-progress: false
if: github.event.pull_request.merged == true if: |
(github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
github.event_name == 'workflow_dispatch'
environment: environment:
name: production name: production
@@ -540,9 +543,9 @@ jobs:
📦 Repository: prod 📦 Repository: prod
🌿 Branch: main 🌿 Branch: main
📝 Commit: ${{ github.event.pull_request.merge_commit_sha }} 📝 Commit: ${{ github.event.pull_request.merge_commit_sha || github.sha }}
👤 Author: ${{ github.event.pull_request.user.login }} 👤 Author: ${{ github.event.pull_request.user.login || github.actor }}
🔀 PR: #${{ github.event.pull_request.number }} ${{ github.event.pull_request.number && format('🔀 PR: #{0}', github.event.pull_request.number) || '' }}
${{ job.status == 'success' && '✅ Deployment successful! All services are healthy.' || '❌ Deployment failed! Check logs for details.' }} ${{ job.status == 'success' && '✅ Deployment successful! All services are healthy.' || '❌ Deployment failed! Check logs for details.' }}
@@ -645,7 +648,7 @@ jobs:
📦 Repository: prod 📦 Repository: prod
🌿 Branch: main 🌿 Branch: main
📝 Commit: ${{ github.event.pull_request.merge_commit_sha }} 📝 Commit: ${{ github.event.pull_request.merge_commit_sha || github.sha }}
${{ job.status == 'success' && '✅ All smoke tests passed! Bots are working correctly.' || '❌ Smoke tests failed! Auto-rollback will be triggered.' }} ${{ job.status == 'success' && '✅ All smoke tests passed! Bots are working correctly.' || '❌ Smoke tests failed! Auto-rollback will be triggered.' }}
@@ -1040,7 +1043,7 @@ jobs:
📦 Repository: prod 📦 Repository: prod
🌿 Branch: main 🌿 Branch: main
📝 Rolled back to previous successful commit 📝 Rolled back to previous successful commit
🔀 PR: #${{ github.event.pull_request.number }} ${{ github.event.pull_request.number && format('🔀 PR: #{0}', github.event.pull_request.number) || '' }}
⚠️ Rollback was triggered automatically due to smoke tests failure. ⚠️ Rollback was triggered automatically due to smoke tests failure.