Skip to content

Commit f2cb3fa

Browse files
authored
ci(stage-build): only build on next branch (#13480)
1 parent 8bd92b2 commit f2cb3fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/stage-build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ jobs:
7373
environment: stage
7474
runs-on: ubuntu-latest
7575

76+
# We only ever want to deploy the `next` branch to stage.
77+
if: ${{ github.repository == 'mdn/yari' && github.ref_name == 'next' }}
78+
7679
steps:
7780
# Our usecase is a bit complicated. When the cron schedule runs this workflow,
7881
# we rely on the env vars defined at the top of the file. But if it's a manual

0 commit comments

Comments
 (0)