Merge pull request #12025 from Homebrew/workflows-pr-fix

workflows: don't silence stderr
This commit is contained in:
Bo Anderson 2021-09-10 15:31:16 +01:00 committed by GitHub
commit d306ffe0c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -51,7 +51,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 2>/dev/null)
PULL_REQUEST_STATE=$(gh pr view --json=state)
if [ "$PULL_REQUEST_STATE" != "OPEN" ]; then
echo "::set-output name=pull_request::true"
fi

View File

@ -47,7 +47,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 2>/dev/null)
PULL_REQUEST_STATE=$(gh pr view --json=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 2>/dev/null)
PULL_REQUEST_STATE=$(gh pr view --json=state)
if [ "$PULL_REQUEST_STATE" != "OPEN" ]; then
echo "::set-output name=pull_request::true"
fi