From 2851fadd4d098a4cec09b06f69e5830877c249d4 Mon Sep 17 00:00:00 2001 From: Katherine Chen Date: Thu, 7 Nov 2024 17:36:44 +1100 Subject: [PATCH] Add quote when checking true --- actions/commit_pr_and_merge/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/commit_pr_and_merge/action.yaml b/actions/commit_pr_and_merge/action.yaml index 1cc74e2d..c365b72e 100644 --- a/actions/commit_pr_and_merge/action.yaml +++ b/actions/commit_pr_and_merge/action.yaml @@ -77,8 +77,8 @@ runs: env: GITHUB_TOKEN: ${{ github.token }} PR_URL: ${{ steps.create-pr.outputs.pull-request-url }} - MERGE_PR_STRATEGY: ${{github.ref_protected == true && '--merge' || '--rebase' }} - ADMIN_ACCESS: ${{ inputs.admin_access == true && '--admin' || '' }} + MERGE_PR_STRATEGY: ${{ github.ref_protected == 'true' && '--merge' || '--rebase' }} + ADMIN_ACCESS: ${{ inputs.admin_access == 'true' && '--admin' || '' }} - name: Tag commit uses: actions/github-script@v7