From 78173c582d56c95342f33d7f45d97eaf610b8276 Mon Sep 17 00:00:00 2001 From: Sion Kang Date: Thu, 2 Jan 2025 17:43:01 +0900 Subject: [PATCH] ci: Graceful exit if committed directly to main --- .github/workflows/backport.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index 4eb8ff4844..774988bb98 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -137,7 +137,7 @@ jobs: backport: - if: ${{ needs.get-backport-target-branch.outputs.matrix != '[]' }} + if: ${{ needs.get-backport-target-branch.outputs.matrix != '[]' && needs.get-backport-target-branch.outputs.matrix != '' }} runs-on: ubuntu-latest needs: get-backport-target-branch strategy: