mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-13 21:34:40 +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: {}
|
||||
jobs:
|
||||
get-releases-branches:
|
||||
if: github.repository == 'kubernetes-sigs/kubespray'
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
branches: ${{ steps.get-branches.outputs.data }}
|
||||
|
||||
Reference in New Issue
Block a user