Merge pull request #14921 from issyl0/sorbet-spoom-bump
sorbet: Run `brew typecheck --update --suggest-typed` on schedule in CI
This commit is contained in:
commit
b3c9b499f7
7
.github/workflows/sorbet.yml
vendored
7
.github/workflows/sorbet.yml
vendored
@ -52,12 +52,17 @@ jobs:
|
|||||||
git checkout --no-track -B "${BRANCH}" origin/master
|
git checkout --no-track -B "${BRANCH}" origin/master
|
||||||
fi
|
fi
|
||||||
|
|
||||||
brew typecheck --update
|
brew typecheck --update --suggest-typed
|
||||||
if ! git diff --stat --exit-code "Library/Homebrew/sorbet"
|
if ! git diff --stat --exit-code "Library/Homebrew/sorbet"
|
||||||
then
|
then
|
||||||
git add "Library/Homebrew/sorbet"
|
git add "Library/Homebrew/sorbet"
|
||||||
git commit -m "sorbet: Update RBI files." \
|
git commit -m "sorbet: Update RBI files." \
|
||||||
-m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow."
|
-m "Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow."
|
||||||
|
|
||||||
|
git add "Library/Homebrew/"
|
||||||
|
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
|
echo "committed=true" >> $GITHUB_OUTPUT
|
||||||
PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"
|
PULL_REQUEST_STATE="$(gh pr view --json=state | jq -r ".state")"
|
||||||
if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]
|
if [[ "${PULL_REQUEST_STATE}" != "OPEN" ]]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user