fix: remove workflow_dispatch inputs to unblock dispatch endpoint
This commit is contained in:
@@ -34,22 +34,6 @@ on:
|
|||||||
|
|
||||||
# ── Manual Trigger (full control) ──
|
# ── Manual Trigger (full control) ──
|
||||||
workflow_dispatch:
|
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:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
@@ -79,7 +63,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event_name == 'workflow_dispatch' && inputs.git_ref || 'main' }}
|
ref: main
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
fetch-tags: true
|
fetch-tags: true
|
||||||
|
|
||||||
@@ -211,15 +195,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
# Auto-deploy: always use cache. Manual: respect no_cache input.
|
|
||||||
BUILD_ARGS=""
|
BUILD_ARGS=""
|
||||||
SERVICE_ARG=""
|
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
|
# Write the deploy script to a file to avoid nested quoting issues
|
||||||
cat > /tmp/nexus-deploy-script.sh << 'DEPLOYSCRIPT'
|
cat > /tmp/nexus-deploy-script.sh << 'DEPLOYSCRIPT'
|
||||||
@@ -376,8 +353,8 @@ DEPLOYSCRIPT
|
|||||||
echo " 📦 Deploy Summary"
|
echo " 📦 Deploy Summary"
|
||||||
echo "═══════════════════════════════════════"
|
echo "═══════════════════════════════════════"
|
||||||
echo " Version: v${{ steps.version.outputs.version }}"
|
echo " Version: v${{ steps.version.outputs.version }}"
|
||||||
echo " Git ref: ${{ github.event_name == 'workflow_dispatch' && inputs.git_ref || 'main' }}"
|
echo " Git ref: main"
|
||||||
echo " Service: ${{ github.event_name == 'workflow_dispatch' && inputs.service || 'all' }}"
|
echo " Service: all"
|
||||||
echo " Trigger: ${TRIGGER}"
|
echo " Trigger: ${TRIGGER}"
|
||||||
echo " Actor: @${{ gitea.actor }}"
|
echo " Actor: @${{ gitea.actor }}"
|
||||||
echo " Status: ${{ job.status }}"
|
echo " Status: ${{ job.status }}"
|
||||||
|
|||||||
Reference in New Issue
Block a user