diff --git a/.github/workflows/tapioca.yml b/.github/workflows/tapioca.yml index a2561d18d71eb40f99ff1847ae339ca447279ad5..d6f6f6c3c815bcdddc6e37f1f06092614df59c5a 100644 --- a/.github/workflows/tapioca.yml +++ b/.github/workflows/tapioca.yml @@ -21,16 +21,12 @@ jobs: with: username: BrewTestBot - # TODO: remove with `brew typecheck` - name: Set up Ruby uses: actions/setup-ruby@main with: ruby-version: '2.6' - name: Install RubyGems - run: | - cd "$GITHUB_WORKSPACE/Library/Homebrew" - gem install bundler -v "~>1" - bundle install --jobs 4 --retry 3 + run: brew typecheck --update-definitions - name: Update Tapioca definitions id: update @@ -48,13 +44,7 @@ jobs: BRANCH_EXISTS="1" fi - # TODO: replace with `brew typecheck` - 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 + if brew typecheck --update-definitions --fail-if-not-changed; then 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)." echo "::set-output name=committed::true"