diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa67f97cb..4c175ce15 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -44,10 +44,12 @@ jobs: vercel-auto-deploy: runs-on: ubuntu-latest if: >- - env.AUTO_DEPLOY_PRS contains $'\n' + toString(github.event.pull_request.number) + $'\n' || - startsWith(env.AUTO_DEPLOY_PRS, toString(github.event.pull_request.number) + $'\n') || - endsWith(env.AUTO_DEPLOY_PRS, $'\n' + toString(github.event.pull_request.number)) || - env.AUTO_DEPLOY_PRS == toString(github.event.pull_request.number) + ( + env.AUTO_DEPLOY_PRS contains $'\n' + toString(github.event.pull_request.number) + $'\n' || + startsWith(env.AUTO_DEPLOY_PRS, toString(github.event.pull_request.number) + $'\n') || + endsWith(env.AUTO_DEPLOY_PRS, $'\n' + toString(github.event.pull_request.number)) || + env.AUTO_DEPLOY_PRS == toString(github.event.pull_request.number) + } permissions: pull-requests: write steps: