Skip to content

Commit ff87796

Browse files
committed
Use a subshell to wrap the gh command
1 parent 7013520 commit ff87796

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/prepare-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
env:
8181
GITHUB_TOKEN: ${{ github.token }}
8282
run: |
83-
release_pr=$(gh pr view rc/$RELEASE_VERSION --json title,state,number)
83+
release_pr=$( { gh pr view rc/$RELEASE_VERSION --json title,state,number; } || echo "")
8484
if [[ ! -z "$release_pr" ]]; then
8585
pr_title=$(echo "$release_pr" | jq -r '.title')
8686
pr_state=$(echo "$release_pr" | jq -r '.state')

0 commit comments

Comments
 (0)