workflows/sorbet: fix pull request testing

This commit is contained in:
Bo Anderson 2023-12-01 20:01:31 +00:00
parent 44cb434d8b
commit c776379fb6
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

View File

@ -47,6 +47,8 @@ jobs:
id: update
working-directory: ${{ steps.set-up-homebrew.outputs.repository-path }}
run: |
if [[ "${GITHUB_EVENT_NAME}" != "pull_request" ]]
then
git fetch origin
BRANCH="sorbet-files-update"
@ -59,6 +61,7 @@ jobs:
else
git checkout --no-track -B "${BRANCH}" origin/master
fi
fi
brew typecheck --update --suggest-typed