Skip to content

Commit

Permalink
only run github actions on the original repository
Browse files Browse the repository at this point in the history
Signed-off-by: Nahshon Unna-Tsameret <[email protected]>
  • Loading branch information
nunnatsa committed Oct 8, 2024
1 parent 423b32f commit 11c6d39
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/clusterkubevirtadm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
name: test-clusterkubevirtadm
jobs:
clusterkubevirtadm-unit_test:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/create_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ name: Upload Release Asset

jobs:
build-and-push-image:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -24,6 +25,7 @@ jobs:
make docker-build-all
make docker-push-all
build:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
name: Upload Release Asset
needs: build-and-push-image
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/image_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
- "main"
jobs:
build-and-push-image:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ jobs:
$(go env GOPATH)/bin/goveralls -coverprofile=coverprofiles/cover.coverprofile -service=github
go-linter:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -57,6 +58,7 @@ jobs:
version: v1.59.0

check-gen:
if: github.repository == 'kubernetes-sigs/cluster-api-provider-kubevirt'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 11c6d39

Please sign in to comment.