ci: Bug fix: empty check was missing $
This commit is contained in:
parent
8d18f1a7bd
commit
9fa26892fd
1 changed files with 4 additions and 1 deletions
5
.github/workflows/release-plz.yml
vendored
5
.github/workflows/release-plz.yml
vendored
|
@ -26,8 +26,11 @@ jobs:
|
|||
# List all opened PRs which head branch starts with "release-plz-"
|
||||
release_pr=$(gh pr list --state='open' --json number,headRefName --jq '.[] | select(.headRefName | startswith("release-plz-")) | .number')
|
||||
# Close the release PR if there is one
|
||||
if [[ -n "release_pr" ]]; then
|
||||
if [[ -n "$release_pr" ]]; then
|
||||
echo "Closing old release PR $release_pr"
|
||||
gh pr close $release_pr
|
||||
else
|
||||
echo "No open release PR"
|
||||
fi
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_PAT }}
|
||||
|
|
Loading…
Add table
Reference in a new issue