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:
types: [closed]
branches: [ main ]
workflow_dispatch:
jobs:
deploy:
@@ -12,7 +13,9 @@ jobs:
concurrency:
group: production-deploy
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:
name: production
@@ -540,9 +543,9 @@ jobs:
📦 Repository: prod
🌿 Branch: main
📝 Commit: ${{ github.event.pull_request.merge_commit_sha }}
👤 Author: ${{ github.event.pull_request.user.login }}
🔀 PR: #${{ github.event.pull_request.number }}
📝 Commit: ${{ github.event.pull_request.merge_commit_sha || github.sha }}
👤 Author: ${{ github.event.pull_request.user.login || github.actor }}
${{ 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.' }}
@@ -645,7 +648,7 @@ jobs:
📦 Repository: prod
🌿 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.' }}
@@ -1040,7 +1043,7 @@ jobs:
📦 Repository: prod
🌿 Branch: main
📝 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.