Skip to content

fix(ci): skip commercial workflows gracefully when production secrets are unconfigured#42

Merged
Coding-Dev-Tools merged 3 commits into
mainfrom
fix/ci-skip-unconfigured-synthetics
Jul 21, 2026
Merged

fix(ci): skip commercial workflows gracefully when production secrets are unconfigured#42
Coding-Dev-Tools merged 3 commits into
mainfrom
fix/ci-skip-unconfigured-synthetics

Conversation

@Coding-Dev-Tools

Copy link
Copy Markdown
Owner

Problem

Both commercial-backup.yml and production-synthetics.yml fail hard when production secrets are not yet configured (pre-GA repos). The original branch attempt used secrets context in a job-level if expression, which is invalid in GitHub Actions — the secrets context is only available in step-level run/if contexts.

Fix

  • production-synthetics.yml: Adds a step-level gate that checks env vars (populated from secrets) and sets skip=true output. All downstream steps get if: steps.gate.outputs.skip != 'true'.
  • commercial-backup.yml: Same step-level gate pattern. Removed the invalid if: ${{ secrets.ENGRAPHIS_CUSTOMER_URL != '' }} job-level condition.

Both workflows now emit a ::warning:: annotation and exit cleanly (green) when secrets are missing, instead of failing with cryptic errors.

Coding-Dev-Tools and others added 3 commits July 20, 2026 16:49
… are unconfigured

The production-synthetics workflow runs hourly and fails every time because
ENGRAPHIS_CUSTOMER_URL and related secrets are not yet set on this repo.
Add a job-level if guard so scheduled runs show as 'skipped' (green) instead
of failing, reducing noise until production deployment is configured.

Same guard applied to commercial-backup.yml (daily 03:41 UTC).
…te in commercial-backup.yml

The `secrets` context is not available in job-level `if` expressions in
GitHub Actions. Replace with a step-level gate pattern (matching
production-synthetics.yml) that checks env vars populated from secrets
and sets a skip output for downstream steps.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Coding-Dev-Tools
Coding-Dev-Tools merged commit 764732c into main Jul 21, 2026
8 checks passed
@Coding-Dev-Tools
Coding-Dev-Tools deleted the fix/ci-skip-unconfigured-synthetics branch July 21, 2026 12:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant