diff --git a/.github/workflows/hugo.yaml b/.github/workflows/hugo.yaml index 468b22e..b7bcfe7 100644 --- a/.github/workflows/hugo.yaml +++ b/.github/workflows/hugo.yaml @@ -2,8 +2,6 @@ name: Deploy Hugo site to Pages on: - # Only Run on Prod - if: github.repository == 'project-chip/matter-handbook-production' # Runs on pushes targeting the default branch push: branches: @@ -32,6 +30,8 @@ defaults: jobs: # Build job build: + # Only Run on Prod + if: github.repository == 'project-chip/matter-handbook-production' runs-on: ubuntu-latest env: HUGO_VERSION: 0.115.4 diff --git a/.github/workflows/pr-preview.yaml b/.github/workflows/pr-preview.yaml index 1093fc6..5f419a6 100644 --- a/.github/workflows/pr-preview.yaml +++ b/.github/workflows/pr-preview.yaml @@ -2,7 +2,6 @@ name: Deploy PR previews on: # Only run on Staging - if: github.repository == 'project-chip/matter-handbook' pull_request: types: - opened @@ -18,6 +17,7 @@ defaults: jobs: build-preview: + if: github.repository == 'project-chip/matter-handbook' runs-on: ubuntu-latest env: HUGO_VERSION: 0.115.4