Skip to content

Commit 6117c02

Browse files
Merge pull request #178 from metalbear-co/run-preview-for-demo
Only run shop preview workflow for demo- branches
2 parents 7ca4fbc + 56312af commit 6117c02

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/preview-shop-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
# ─── Job 1: Detect which services changed ───
2121
detect-changes:
2222
name: Detect changed services
23-
if: github.event.action != 'closed'
23+
if: github.event.action != 'closed' && startsWith(github.head_ref, 'demo-')
2424
runs-on: ubuntu-latest
2525
outputs:
2626
matrix: ${{ steps.build-matrix.outputs.matrix }}
@@ -252,7 +252,7 @@ jobs:
252252
# ─── Job 4: Stop all previews on merge/close ───
253253
preview-stop:
254254
name: Stop all previews on merge/close
255-
if: github.event.action == 'closed'
255+
if: github.event.action == 'closed' && startsWith(github.head_ref, 'demo-')
256256
runs-on: ubuntu-latest
257257
timeout-minutes: 5
258258
permissions:

0 commit comments

Comments
 (0)