Merge pull request #15187 from carlocab/sorbet-lint

workflows/sorbet: fix actionlint errors
This commit is contained in:
Carlo Cabrera 2023-04-11 02:11:07 +08:00 committed by GitHub
commit 322b51c147
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ jobs:
git fetch origin
BRANCH="sorbet-files-update"
echo "branch=${BRANCH}" >> $GITHUB_OUTPUT
echo "branch=${BRANCH}" >> "$GITHUB_OUTPUT"
if git ls-remote --exit-code --heads origin "${BRANCH}"
then
@ -79,11 +79,11 @@ jobs:
-m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow."
fi
echo "committed=true" >> $GITHUB_OUTPUT
echo "committed=true" >> "$GITHUB_OUTPUT"
PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"
if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]
then
echo "pull_request=true" >> $GITHUB_OUTPUT
echo "pull_request=true" >> "$GITHUB_OUTPUT"
fi
fi