diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 6f66be0d..5587d5fe 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -47,7 +47,7 @@ jobs: environment: name: acceptance url: ${{ steps.get_brancher_hostname.outputs.BRANCHER_URL }} - if: github.ref != 'refs/heads/master' + if: github.event_name == 'pull_request_target' container: quay.io/hypernode/deploy:latest-php8.4-node22 steps: - uses: actions/checkout@v3 @@ -103,7 +103,7 @@ jobs: environment: name: production url: https://docs.hypernode.io - if: github.ref == 'refs/heads/master' + if: github.event_name == 'push' && github.ref == 'refs/heads/master' container: quay.io/hypernode/deploy:latest-php8.4-node22 steps: - uses: actions/checkout@v3