Skip to content

fix: allow workflow_dispatch for v1.14 SWA deployment#5136

Open
paulyuk wants to merge 2 commits intov1.14from
fix/workflow-dispatch-v1-14
Open

fix: allow workflow_dispatch for v1.14 SWA deployment#5136
paulyuk wants to merge 2 commits intov1.14from
fix/workflow-dispatch-v1-14

Conversation

@paulyuk
Copy link
Copy Markdown
Contributor

@paulyuk paulyuk commented Apr 21, 2026

Problem

The build job condition only allows push and pull_request events:

if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')

workflow_dispatch is excluded, so manual triggers skip the build.

Fix

Use the same condition as website-root.yml:

if: github.event.action != 'closed'

This works for all event types (push, pull_request, workflow_dispatch) and only skips the closed PR action.

Context

Needed after migrating SWAs to the new Azure subscription. When merged, the push event will trigger deployment to the new SWA.

@paulyuk paulyuk requested review from a team as code owners April 21, 2026 23:43
Signed-off-by: paulyuk <paulyuk@microsoft.com>
@paulyuk paulyuk force-pushed the fix/workflow-dispatch-v1-14 branch from 4719307 to 0ddf7bf Compare April 22, 2026 06:47
@paulyuk paulyuk force-pushed the fix/workflow-dispatch-v1-14 branch from bb20734 to c1001a0 Compare April 22, 2026 07:02
@github-actions
Copy link
Copy Markdown

Azure Static Web Apps: Your stage site is ready! Visit it here: https://delightful-river-0f7b2381e-5136.westus2.7.azurestaticapps.net

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