Merge pull request #8435 from Homebrew/dawidd6-patch-1

workflows/tapioca: fix it really
This commit is contained in:
Issy Long 2020-08-22 18:00:20 +01:00 committed by GitHub
commit af5c32a302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,11 +39,12 @@ 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 reset origin/master
git add sorbet git add sorbet
if ! git --no-patch --exit-code HEAD -- sorbet; then if ! git diff --no-patch --exit-code HEAD -- sorbet; then
if ! git ls-remote --exit-code --heads origin tapioca-update; then if ! git ls-remote --exit-code --heads origin tapioca-update >/dev/null; then
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"
fi fi
@ -58,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 }}