From 2ee19779566d4b4cb63b45c2c95157688485f025 Mon Sep 17 00:00:00 2001 From: Andrey Date: Sun, 25 Jan 2026 20:09:18 +0300 Subject: [PATCH] feat: add workflow_dispatch to deploy.yml and debug secrets --- .github/workflows/deploy.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d673219..3e418ee 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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.