fix(ci): drop replace() in ci_steps if — not implemented in WDIPL-Runner

Made-with: Cursor
This commit is contained in:
WDI-Ideas
2026-04-07 23:59:29 +05:30
parent 45b39eebc5
commit fb201190cc
2 changed files with 5 additions and 5 deletions

View File

@@ -5,7 +5,7 @@ on:
inputs:
# WDIPL-Runner v0.2.12: only the first truthy workflow_call flag reached nested jobs; the rest
# were empty. Use ONE comma-separated input so Act forwards a single string with all steps.
# Tokens: build, sonar, deploy (e.g. "build,sonar,deploy" or "build" only).
# Tokens: build, sonar, deploy (e.g. build,sonar,deploy). No spaces — WDIPL-Runner has no replace().
ci_steps:
type: string
required: true
@@ -85,7 +85,7 @@ jobs:
# 🔨 BUILD
build:
if: ${{ contains(format(',{0},', replace(inputs.ci_steps, ' ', '')), ',build,') }}
if: ${{ contains(format(',{0},', inputs.ci_steps), ',build,') }}
uses: Rajendra.Reddy/wdipl-actions/.gitea/workflows/build.yml@main
with:
tech_stack: ${{ inputs.tech_stack }}
@@ -93,7 +93,7 @@ jobs:
# 🔍 SONAR
sonar:
if: ${{ contains(format(',{0},', replace(inputs.ci_steps, ' ', '')), ',sonar,') }}
if: ${{ contains(format(',{0},', inputs.ci_steps), ',sonar,') }}
needs: build
uses: Rajendra.Reddy/wdipl-actions/.gitea/workflows/quality.yml@main
with:
@@ -105,7 +105,7 @@ jobs:
# 🚀 DEPLOY (runs after build; sonar may be skipped)
deploy:
if: ${{ always() && contains(format(',{0},', replace(inputs.ci_steps, ' ', '')), ',deploy,') && needs.build.result == 'success' && (needs.sonar.result == 'success' || needs.sonar.result == 'skipped') }}
if: ${{ always() && contains(format(',{0},', inputs.ci_steps), ',deploy,') && needs.build.result == 'success' && (needs.sonar.result == 'success' || needs.sonar.result == 'skipped') }}
needs: [build, sonar]
uses: Rajendra.Reddy/wdipl-actions/.gitea/workflows/deploy.yml@main
with:

View File

@@ -118,7 +118,7 @@ jobs:
| Variable | What to set |
| --------------------- | ---------------------- |
| tech_stack | node / react / nestjs |
| ci_steps | e.g. `build,sonar,deploy` or `build` only |
| ci_steps | e.g. `build,sonar,deploy` **no spaces** (runner has no `replace()`) |
| wait_for_quality_gate | `'true'` / `'false'` (quoted) |
| app_path_beta | path on beta server |
| app_path_staging | path on staging server |