From 405261c823846053a4c4a68167a21773c7d5a207 Mon Sep 17 00:00:00 2001 From: Stefan Bueringer Date: Thu, 23 Jun 2022 09:00:54 +0200 Subject: [PATCH] Fix: disable verify action for cherry-pick bot --- .github/workflows/verify.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index ba935577f69d..ddea2be6719e 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -1,10 +1,6 @@ on: pull_request_target: types: [opened, edited, synchronize, reopened] - # Don't run this check on PRs created by the cherry-pick bot, - # as the PR description is too short, but otherwise the PRs are fine. - branches-ignore: - - k8s-infra-cherrypick-robot/** jobs: verify: @@ -14,5 +10,8 @@ jobs: - name: Verifier action id: verifier uses: kubernetes-sigs/kubebuilder-release-tools@v0.2.0 + # Don't run this step on PRs created by the cherry-pick bot, + # as the PR description is too short, but otherwise the PRs are fine. + if: ${{ github.event.pull_request.head.repo.owner.login != 'k8s-infra-cherrypick-robot' }} with: github_token: ${{ secrets.GITHUB_TOKEN }}