diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index c10450f8a6..9b782d8fb7 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -108,6 +108,7 @@ jobs: run: make test build-amazonlinux-latest: + if: github.repository_owner == 'valkey-io' strategy: # Run all jobs fail-fast: false diff --git a/.github/workflows/java-cd.yml b/.github/workflows/java-cd.yml index ac8e771025..c19dead61f 100644 --- a/.github/workflows/java-cd.yml +++ b/.github/workflows/java-cd.yml @@ -25,7 +25,7 @@ permissions: jobs: start-self-hosted-runner: - if: github.event.pull_request.head.repo.owner.login == 'valkey-io' + if: github.repository_owner == 'valkey-io' runs-on: ubuntu-latest environment: AWS_ACTIONS steps: @@ -43,7 +43,7 @@ jobs: create-binaries-to-publish: needs: start-self-hosted-runner - if: github.event.pull_request.head.repo.owner.login == 'valkey-io' + if: github.repository_owner == 'valkey-io' timeout-minutes: 35 env: JAVA_VERSION: '11' diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 2d35608975..dd8a7fc4af 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -119,6 +119,7 @@ jobs: java/client/build/reports/spotbugs/** build-amazonlinux-latest: + if: github.repository_owner == 'valkey-io' strategy: # Run all jobs fail-fast: false diff --git a/.github/workflows/npm-cd.yml b/.github/workflows/npm-cd.yml index 280552fd83..67986fd4c2 100644 --- a/.github/workflows/npm-cd.yml +++ b/.github/workflows/npm-cd.yml @@ -30,7 +30,7 @@ permissions: jobs: start-self-hosted-runner: - if: github.event.pull_request.head.repo.owner.login == 'valkey-io' + if: github.repository_owner == 'valkey-io' runs-on: ubuntu-latest environment: AWS_ACTIONS steps: @@ -64,7 +64,7 @@ jobs: publish-binaries: needs: [start-self-hosted-runner, load-platform-matrix] - if: github.event.pull_request.head.repo.owner.login == 'valkey-io' + if: github.repository_owner == 'valkey-io' name: Publish packages to NPM runs-on: ${{ matrix.build.RUNNER }} container: diff --git a/.github/workflows/pypi-cd.yml b/.github/workflows/pypi-cd.yml index 488db71948..bcbcbf108f 100644 --- a/.github/workflows/pypi-cd.yml +++ b/.github/workflows/pypi-cd.yml @@ -46,7 +46,7 @@ jobs: start-self-hosted-runner: - if: github.event.pull_request.head.repo.owner.login == 'valkey-io' + if: github.repository_owner == 'valkey-io' runs-on: ubuntu-latest environment: AWS_ACTIONS steps: @@ -61,7 +61,7 @@ jobs: publish-binaries: needs: [start-self-hosted-runner, load-platform-matrix] - if: github.event.pull_request.head.repo.owner.login == 'valkey-io' + if: github.repository_owner == 'valkey-io' name: Publish packages to PyPi runs-on: ${{ matrix.build.RUNNER }} timeout-minutes: 25