From c5f4773e69a275c1ed9ffe44f01d7a0ea23cdfa2 Mon Sep 17 00:00:00 2001 From: Mathieu Veber Date: Fri, 14 Jun 2024 11:10:48 +0200 Subject: [PATCH] fix(approve-please): fix ternary --- .github/workflows/approve-please.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/approve-please.yml b/.github/workflows/approve-please.yml index 0baa3a1..50e2fd1 100644 --- a/.github/workflows/approve-please.yml +++ b/.github/workflows/approve-please.yml @@ -62,7 +62,7 @@ jobs: for url in ${urls//,/ } do echo "> $url" - ${{ inputs.approval && 'gh pr review --approve --body "$body" $url' }} + ${{ inputs.approval && 'gh pr review --approve --body "$body" $url' || '' }} done env: GH_TOKEN: ${{ inputs.assignee == 'hedia-bot' && secrets.HEDIA_BOT_LIMITED_GITHUB_PAT || secrets.HEDIA_BOT_GITHUB_PAT }}