mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
Don't run upgrade-patch jobs on forks (#12206)
With the current github-workflow setup, workflows are triggered on every forked repository (which is quite wasteful). Add a condition to only run on the main repository.
This commit is contained in:
@@ -8,6 +8,7 @@ on:
|
|||||||
permissions: {}
|
permissions: {}
|
||||||
jobs:
|
jobs:
|
||||||
get-releases-branches:
|
get-releases-branches:
|
||||||
|
if: github.repository == 'kubernetes-sigs/kubespray'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
outputs:
|
outputs:
|
||||||
branches: ${{ steps.get-branches.outputs.data }}
|
branches: ${{ steps.get-branches.outputs.data }}
|
||||||
|
|||||||
Reference in New Issue
Block a user