Skip to content

Commit

Permalink
Revert "Fix the way we check repo owner on cd workflows (valkey-io#1898
Browse files Browse the repository at this point in the history
…)" (valkey-io#1900)

Signed-off-by: Shoham Elias <shohame@amazon.com>
  • Loading branch information
shohamazon authored Jul 9, 2024
1 parent 4018de3 commit 62ca39e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ jobs:
run: make test

build-amazonlinux-latest:
if: github.repository_owner == 'valkey-io'
strategy:
# Run all jobs
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/java-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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'
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/npm-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pypi-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 62ca39e

Please sign in to comment.