Files
meshcore-analyzer/.github/workflows
Kpa-clawbot a58b92270c fix(ci): deploy staging on workflow_dispatch reruns too (unblocks post-flake deploys) (#1320)
## Problem

When CI flakes on a `push` to master and is later manually re-run via
`workflow_dispatch`, the `🚀 Deploy Staging` job is **skipped** even
though all upstream jobs pass. Staging stays stale until someone pushes
another commit.

Example: run `26266461986`.

## Fix

`.github/workflows/deploy.yml` — relax the deploy job's `if:` gate to
allow `workflow_dispatch` reruns on master:

```yaml
deploy:
  name: "🚀 Deploy Staging"
  if: |
    (github.event_name == 'push' || github.event_name == 'workflow_dispatch')
    && github.ref == 'refs/heads/master'
  needs: [build-and-publish]
```

Behavior matrix:

- Push to master → deploys (unchanged)
- Manual `workflow_dispatch` on master → **deploys** (was: skipped —
this is the fix)
- PR runs → no deploy
- Push to non-master branch → no deploy
- `needs: [build-and-publish]` still gates on Docker build success

## TDD exemption

Pure CI workflow config change. AGENTS.md "Config changes" exemption
applies — testing this guard requires triggering a real CI run, which
the PR itself does. No test files modified; existing tests stay green
and unaltered.

## Scope

One file: `.github/workflows/deploy.yml` (3 lines added, 1 removed).

Fixes #1319

Co-authored-by: openclaw-bot <bot@openclaw.local>
2026-05-21 22:25:43 -07:00
..