dev-15 #19

Merged
kerrad merged 6 commits from dev-15 into master 2026-02-28 21:38:54 +00:00
Showing only changes of commit d963ea83ad - Show all commits

View File

@@ -17,10 +17,13 @@ on:
required: false
type: string
dry_run:
description: 'Dry run (deploy only — no SSH, just show what would run)'
required: false
type: boolean
default: false
description: 'Dry run (only for deploy — no SSH, only show planned steps)'
required: true
type: choice
default: no
options:
- no
- yes
jobs:
deploy:
@@ -30,7 +33,7 @@ jobs:
github.event_name == 'push' ||
(github.event_name == 'workflow_dispatch' && github.event.inputs.action == 'deploy')
env:
DRY_RUN: ${{ github.event.inputs.dry_run == 'true' }}
DRY_RUN: ${{ github.event.inputs.dry_run == 'yes' }}
concurrency:
group: production-deploy-telegram-helper-bot
cancel-in-progress: false
@@ -44,7 +47,7 @@ jobs:
ref: main
- name: Dry run (simulate deploy steps)
if: github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'true'
if: github.event_name == 'workflow_dispatch' && github.event.inputs.dry_run == 'yes'
run: |
echo "🔍 DRY RUN — no SSH, no changes on server"
echo "Would run on server:"
@@ -62,7 +65,7 @@ jobs:
fi
- name: Deploy to server
if: github.event_name != 'workflow_dispatch' || github.event.inputs.dry_run != 'true'
if: github.event_name != 'workflow_dispatch' || github.event.inputs.dry_run != 'yes'
uses: appleboy/ssh-action@v1.0.0
with:
host: ${{ vars.SERVER_HOST || secrets.SERVER_HOST }}