workflows: fix gh parsing

This commit is contained in:
Bo Anderson 2021-09-10 19:25:53 +01:00
parent aebcd5fdd4
commit 9d168ff483
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65
3 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ jobs:
git commit -m "sorbet: Update RBI files." \
-m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow."
echo "::set-output name=committed::true"
PULL_REQUEST_STATE=$(gh pr view --json=state)
PULL_REQUEST_STATE=$(gh pr view --json=state | jq -r ".state")
if [ "$PULL_REQUEST_STATE" != "OPEN" ]; then
echo "::set-output name=pull_request::true"
fi

View File

@ -48,7 +48,7 @@ jobs:
git add "$GITHUB_WORKSPACE/Library/Homebrew/data/spdx"
git commit -m "spdx: update license data." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/spdx.yml)."
echo "::set-output name=committed::true"
PULL_REQUEST_STATE=$(gh pr view --json=state)
PULL_REQUEST_STATE=$(gh pr view --json=state | jq -r ".state")
if [ "$PULL_REQUEST_STATE" != "OPEN" ]; then
echo "::set-output name=pull_request::true"
fi

View File

@ -63,7 +63,7 @@ jobs:
git commit -m "Update maintainers, manpage and completions." \
-m "Autogenerated by the [update-man-completions](https://github.com/Homebrew/brew/blob/HEAD/.github/workflows/update-man-completions.yml) workflow."
echo "::set-output name=committed::true"
PULL_REQUEST_STATE=$(gh pr view --json=state)
PULL_REQUEST_STATE=$(gh pr view --json=state | jq -r ".state")
if [ "$PULL_REQUEST_STATE" != "OPEN" ]; then
echo "::set-output name=pull_request::true"
fi