ci: make manual workflow default safe
All checks were successful
CI/CD Pipeline / Manual Action Help (push) Has been skipped
CI/CD Pipeline / Start Dev Containers in Dokploy (push) Has been skipped
CI/CD Pipeline / Cleanup Dev Database (push) Has been skipped
CI/CD Pipeline / Quality Gate (push) Successful in 2m54s
CI/CD Pipeline / Build and Push Images (push) Successful in 2m10s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
All checks were successful
CI/CD Pipeline / Manual Action Help (push) Has been skipped
CI/CD Pipeline / Start Dev Containers in Dokploy (push) Has been skipped
CI/CD Pipeline / Cleanup Dev Database (push) Has been skipped
CI/CD Pipeline / Quality Gate (push) Successful in 2m54s
CI/CD Pipeline / Build and Push Images (push) Successful in 2m10s
CI/CD Pipeline / Internal Notify (push) Successful in 1s
This commit is contained in:
@@ -14,9 +14,9 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
manual_action:
|
manual_action:
|
||||||
description: "Manual action: dokploy_start or cleanup_dev_database"
|
description: "Manual action: noop, cleanup_dev_database, or dokploy_start"
|
||||||
required: true
|
required: true
|
||||||
default: "dokploy_start"
|
default: "noop"
|
||||||
dokploy_target:
|
dokploy_target:
|
||||||
description: "Dokploy dev target: all, web, or celery"
|
description: "Dokploy dev target: all, web, or celery"
|
||||||
required: true
|
required: true
|
||||||
@@ -41,6 +41,27 @@ env:
|
|||||||
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
manual_action_noop:
|
||||||
|
name: Manual Action Help
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
timeout-minutes: 1
|
||||||
|
if: |
|
||||||
|
github.event_name == 'workflow_dispatch' &&
|
||||||
|
github.ref == 'refs/heads/dev' &&
|
||||||
|
(github.event.inputs.manual_action == '' || github.event.inputs.manual_action == 'noop')
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Show manual action usage
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
{
|
||||||
|
echo "No manual action selected."
|
||||||
|
echo "For dev DB cleanup run with:"
|
||||||
|
echo "- manual_action=cleanup_dev_database"
|
||||||
|
echo "- cleanup_confirm=CLEAN_DEV_DB"
|
||||||
|
echo "For Dokploy start run with manual_action=dokploy_start."
|
||||||
|
} >> "${GITHUB_STEP_SUMMARY:-/dev/stdout}"
|
||||||
|
|
||||||
quality:
|
quality:
|
||||||
name: Quality Gate
|
name: Quality Gate
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user