.github/workflows: use brew typecheck in tapioca.yml
This commit is contained in:
parent
2468fb127d
commit
98f8235755
14
.github/workflows/tapioca.yml
vendored
14
.github/workflows/tapioca.yml
vendored
@ -21,16 +21,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
username: BrewTestBot
|
username: BrewTestBot
|
||||||
|
|
||||||
# TODO: remove with `brew typecheck`
|
|
||||||
- name: Set up Ruby
|
- name: Set up Ruby
|
||||||
uses: actions/setup-ruby@main
|
uses: actions/setup-ruby@main
|
||||||
with:
|
with:
|
||||||
ruby-version: '2.6'
|
ruby-version: '2.6'
|
||||||
- name: Install RubyGems
|
- name: Install RubyGems
|
||||||
run: |
|
run: brew typecheck --update-definitions
|
||||||
cd "$GITHUB_WORKSPACE/Library/Homebrew"
|
|
||||||
gem install bundler -v "~>1"
|
|
||||||
bundle install --jobs 4 --retry 3
|
|
||||||
|
|
||||||
- name: Update Tapioca definitions
|
- name: Update Tapioca definitions
|
||||||
id: update
|
id: update
|
||||||
@ -48,13 +44,7 @@ jobs:
|
|||||||
BRANCH_EXISTS="1"
|
BRANCH_EXISTS="1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: replace with `brew typecheck`
|
if brew typecheck --update-definitions --fail-if-not-changed; then
|
||||||
cd "$GITHUB_WORKSPACE/Library/Homebrew"
|
|
||||||
bundle exec tapioca sync --exclude json
|
|
||||||
bundle exec srb rbi hidden-definitions
|
|
||||||
if ! git diff --no-patch --exit-code -- sorbet; then
|
|
||||||
|
|
||||||
# if brew typecheck --update --fail-if-not-changed; then
|
|
||||||
git add "$GITHUB_WORKSPACE/Library/Homebrew/sorbet"
|
git add "$GITHUB_WORKSPACE/Library/Homebrew/sorbet"
|
||||||
git commit -m "sorbet: update RBI files using Tapioca." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml)."
|
git commit -m "sorbet: update RBI files using Tapioca." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/tapioca.yml)."
|
||||||
echo "::set-output name=committed::true"
|
echo "::set-output name=committed::true"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user