Skip to content

Commit

Permalink
Use bash shell for checking for PR
Browse files Browse the repository at this point in the history
  • Loading branch information
elzik committed Oct 30, 2023
1 parent 92a109a commit 3a0a69f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
id: prcheck
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
shell: bash
run: |
prs=$(gh pr list \
--repo "$GITHUB_REPOSITORY" \
Expand All @@ -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
Expand Down

0 comments on commit 3a0a69f

Please sign in to comment.