From 3a0a69f7ddc92e72e931822784dd310a86acc799 Mon Sep 17 00:00:00 2001 From: elzik <23397871+elzik@users.noreply.github.com> Date: Mon, 30 Oct 2023 20:34:13 +0000 Subject: [PATCH] Use bash shell for checking for PR --- .github/workflows/continuous-delivery.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml index 70d6bc9..f9ccd25 100644 --- a/.github/workflows/continuous-delivery.yml +++ b/.github/workflows/continuous-delivery.yml @@ -40,6 +40,7 @@ jobs: id: prcheck env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + shell: bash run: | prs=$(gh pr list \ --repo "$GITHUB_REPOSITORY" \ @@ -48,7 +49,7 @@ jobs: map(select(.baseRefName == "main" and .headRefName == "${{ github.ref_name }}")) | length ') - if (prs > 0); then + if ((prs > 0)); then echo "pull_request_exists=true" >> "$GITHUB_OUTPUT" fi - name: Tag With SemVer