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 57cadd6
Show file tree
Hide file tree
Showing 3 changed files with 4 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

0 comments on commit 57cadd6

Please sign in to comment.