Skip to content
Snippets Groups Projects
Unverified Commit 189d10b3 authored by Issy Long's avatar Issy Long
Browse files

workflows/sorbet: Rename from Tapioca as it does more than Tapioca now

- This uses the `--update` switch to do both RBI file updates and pruning of
  deleted files from `sorbet/files.yaml`. The assumption is that only
  this automated task will run this command.
parent bb0fc276
No related branches found
No related tags found
No related merge requests found
name: Update Tapioca definitions name: Update Sorbet-related files
on: on:
push: push:
paths: paths:
- .github/workflows/tapioca.yml - .github/workflows/sorbet.yml
branches-ignore: branches-ignore:
- master - master
schedule: schedule:
...@@ -26,7 +26,7 @@ jobs: ...@@ -26,7 +26,7 @@ jobs:
run: | run: |
git fetch origin git fetch origin
BRANCH="tapioca-update" BRANCH="sorbet-files-update"
echo "::set-output name=branch::${BRANCH}" echo "::set-output name=branch::${BRANCH}"
if git ls-remote --exit-code --heads origin "$BRANCH"; then if git ls-remote --exit-code --heads origin "$BRANCH"; then
...@@ -37,9 +37,9 @@ jobs: ...@@ -37,9 +37,9 @@ jobs:
BRANCH_EXISTS="1" BRANCH_EXISTS="1"
fi fi
if brew typecheck --prune-files-list --update-definitions --fail-if-not-changed; then if brew typecheck --update --fail-if-not-changed; then
git add "$GITHUB_WORKSPACE/Library/Homebrew/sorbet" 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)." git commit -m "sorbet: Update RBI files and prune files.yaml." -m "Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml)."
echo "::set-output name=committed::true" echo "::set-output name=committed::true"
if [ -n "$BRANCH_EXISTS" ]; then if [ -n "$BRANCH_EXISTS" ]; then
echo "::set-output name=pull_request::true" echo "::set-output name=pull_request::true"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment