workflows/tapioca: fetch origin/master and reset to it

This commit is contained in:
Dawid Dziurla 2020-08-22 18:03:27 +02:00
parent e9b46b1967
commit dcc6e7c514
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -39,6 +39,8 @@ jobs:
bundle exec tapioca sync --exclude json bundle exec tapioca sync --exclude json
bundle exec srb rbi hidden-definitions bundle exec srb rbi hidden-definitions
git fetch origin master
git reset --hard origin/master
git checkout -B tapioca-update git checkout -B tapioca-update
git add sorbet git add sorbet
if ! git diff --no-patch --exit-code HEAD -- sorbet; then if ! git diff --no-patch --exit-code HEAD -- sorbet; then
@ -57,8 +59,6 @@ jobs:
- name: Open a pull request - name: Open a pull request
if: steps.update.outputs.committed == 'true' if: steps.update.outputs.committed == 'true'
run: | run: hub pull-request --no-edit
cd "$GITHUB_WORKSPACE/Library/Homebrew"
hub pull-request --no-edit
env: env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }} GITHUB_TOKEN: ${{ secrets.HOMEBREW_GITHUB_API_TOKEN }}