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:
Max Gautier
2025-05-10 15:15:14 +02:00
committed by GitHub
parent 0c8dfb8e43
commit e618421697

View File

@@ -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 }}