Skip to content

Commit

Permalink
Set exists to false when PR doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
elzik committed Oct 30, 2023
1 parent f1dc18a commit 1cdef18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/continuous-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,8 @@ jobs:
map(select(.baseRefName == \"main\" and .headRefName == \"${{ github.ref_name }}\"))
| length
')
if ($prs -gt 0) {
Add-Content -Path $env:GITHUB_OUTPUT -Value "pull_request_exists=true"
}
$exists = ($prs -gt 0)
Add-Content -Path $env:GITHUB_OUTPUT -Value "pull_request_exists=$exists"
shell: pwsh
- name: Tag With SemVer
id: tag
Expand Down

0 comments on commit 1cdef18

Please sign in to comment.