sorbet: Run brew typecheck --update --suggest-typed on schedule in CI

- No idea if this works, let's experiment.
- Suggested in https://github.com/Homebrew/brew/pull/14893#issuecomment-1456040533.
This commit is contained in:
Issy Long 2023-03-07 23:06:38 +00:00
parent 3e2c713c92
commit 7053036d93
No known key found for this signature in database
GPG Key ID: 8247C390DADC67D4

View File

@ -52,12 +52,17 @@ jobs:
git checkout --no-track -B "${BRANCH}" origin/master
fi
brew typecheck --update
brew typecheck --update --suggest-typed
if ! git diff --stat --exit-code "Library/Homebrew/sorbet"
then
git add "Library/Homebrew/sorbet"
git commit -m "sorbet: Update RBI files." \
-m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow."
git add "**/.rb"
git commit -m "sorbet: Autobump sigils via Spoom" \
-m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow."
echo "committed=true" >> $GITHUB_OUTPUT
PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"
if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]