fix: remove workflow_dispatch inputs to unblock dispatch endpoint
CI - Build & Test / Backend (.NET) (push) Successful in 27s
CI - Build & Test / Frontend (Vue/TS) (push) Has been cancelled
CI - Build & Test / Security Check (push) Has been cancelled

This commit is contained in:
2026-06-21 21:34:15 +02:00
parent ca4bad2ba7
commit 6b2ab04f8d
+3 -26
View File
@@ -34,22 +34,6 @@ on:
# ── Manual Trigger (full control) ──
workflow_dispatch:
inputs:
service:
description: 'Service to deploy (empty = all)'
required: false
default: ''
type: string
no_cache:
description: 'Disable Docker build cache (true/false)'
required: false
default: 'false'
type: string
git_ref:
description: 'Git ref to deploy (branch, tag, or commit SHA; default: main)'
required: false
default: 'main'
type: string
jobs:
deploy:
@@ -79,7 +63,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.git_ref || 'main' }}
ref: main
fetch-depth: 0
fetch-tags: true
@@ -211,15 +195,8 @@ jobs:
run: |
set -euo pipefail
# Auto-deploy: always use cache. Manual: respect no_cache input.
BUILD_ARGS=""
SERVICE_ARG=""
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
if [ "${{ github.event_name == 'workflow_dispatch' && inputs.no_cache || 'false' }}" = "true" ]; then
BUILD_ARGS="--no-cache"
fi
SERVICE_ARG="${{ github.event_name == 'workflow_dispatch' && inputs.service || '' }}"
fi
# Write the deploy script to a file to avoid nested quoting issues
cat > /tmp/nexus-deploy-script.sh << 'DEPLOYSCRIPT'
@@ -376,8 +353,8 @@ DEPLOYSCRIPT
echo " 📦 Deploy Summary"
echo "═══════════════════════════════════════"
echo " Version: v${{ steps.version.outputs.version }}"
echo " Git ref: ${{ github.event_name == 'workflow_dispatch' && inputs.git_ref || 'main' }}"
echo " Service: ${{ github.event_name == 'workflow_dispatch' && inputs.service || 'all' }}"
echo " Git ref: main"
echo " Service: all"
echo " Trigger: ${TRIGGER}"
echo " Actor: @${{ gitea.actor }}"
echo " Status: ${{ job.status }}"