From 98f8235755d1372f8fb74d4088da3de864753731 Mon Sep 17 00:00:00 2001 From: vidusheeamoli Date: Thu, 27 Aug 2020 02:42:50 +0530 Subject: [PATCH] .github/workflows: use brew typecheck in tapioca.yml --- .github/workflows/tapioca.yml | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/.github/workflows/tapioca.yml b/.github/workflows/tapioca.yml index a2561d18d7..d6f6f6c3c8 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"