diff --git a/.github/workflows/book.yml b/.github/workflows/book.yml index 84905840f..36153fbce 100644 --- a/.github/workflows/book.yml +++ b/.github/workflows/book.yml @@ -115,7 +115,7 @@ jobs: deploy: # Only deploy if a push to master - if: github.ref_name == 'master' && github.event_name == 'push' + if: github.ref_name == 'master' && github.event_name == 'push' && github.repository == 'reamlabs/ream' runs-on: ubuntu-latest needs: [test, lint, build] diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml index 250a5c53b..9045f1535 100644 --- a/.github/workflows/docker-ci.yml +++ b/.github/workflows/docker-ci.yml @@ -10,6 +10,8 @@ permissions: jobs: push: runs-on: ubuntu-latest + if: github.repository == 'reamlabs/ream' + steps: - uses: actions/checkout@v4 - uses: docker/login-action@v3 @@ -22,4 +24,4 @@ jobs: context: . file: ./Dockerfile push: true - tags: ghcr.io/reamlabs/ream:latest + tags: ghcr.io/reamlabs/ream:latest