30 Commits

Author SHA1 Message Date
Carlo Cabrera
141f68688b
workflows/sorbet: fix actionlint errors 2023-04-11 00:00:27 +08:00
Bo Anderson
496736a199
Improve sorbet & vendor gem workflow testing 2023-04-10 14:40:57 +01:00
Mike McQuaid
573b99bd7f
Revert "Include prof gem group in sorbet workflow" 2023-04-04 09:03:39 +01:00
Douglas Eichelberger
c7db55d01b Include prof gem group in sorbet workflow 2023-04-03 11:43:24 -07:00
Issy Long
f75a7621a5
sorbet: Fix (not) committing Spoom automatic sigil bumps
- This was failing to push the existing changes if there was nothing to
  commit. Add an extra `if`.

```
==> Bumping Sorbet `typed` sigils...
Checking files...

No file to bump from false to true
 Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
[sorbet-files-update 7c3c04e94] sorbet: Update RBI files.
 1 file changed, 5 insertions(+), 1 deletion(-)
On branch sorbet-files-update
nothing to commit, working tree clean
Error: Process completed with exit code 1.
```
2023-03-15 17:22:31 +00:00
Issy Long
20fe371c75
sorbet: More specific git add for --suggest-typed CI autobumps 2023-03-08 23:43:02 +00:00
Issy Long
9c9f6b36b5
sorbet: Oops, missed a * for **/*.rb path wildcards 2023-03-07 23:10:28 +00:00
Issy Long
7053036d93
sorbet: Run brew typecheck --update --suggest-typed on schedule in CI
- No idea if this works, let's experiment.
- Suggested in https://github.com/Homebrew/brew/pull/14893#issuecomment-1456040533.
2023-03-07 23:08:16 +00:00
Bo Anderson
dc2f41cb8d
workflows: set working directory to repo location 2023-01-27 01:48:26 +00:00
Bo Anderson
3867038ab7
workflows: migrate from deprecated set-output 2022-10-11 20:11:15 +01:00
Mike McQuaid
4aa765fafe
Cleanup and fix CI jobs
- use macOS 12 or Ubuntu 22.04 wherever appropriate
- don't append `(Linux)` to job names
- use specific Ubuntu 22.04 and Ubuntu 18.04 jobs

We may want to consider more Ubuntu 18.04 jobs in future, too.
2022-09-27 10:30:08 +01:00
Mike McQuaid
af6165aab7
Automate sponsors updates
- Add sponsors updating to the existing man/completion/maintainer update workflow
- Hide/deprecated --fail-if-not-changed arguments and make them default behaviour
- Rename man-completions workflow to sponsors-maintainers-man-completions for consistency
- Make output and exit codes more consistent between these updating commands
- Fix maintainers updates not always being committed correctly
2022-09-02 08:24:33 +01:00
Bo Anderson
e3b760289f
Merge pull request #12063 from Homebrew/workflow-permissions
workflows: reduce GITHUB_TOKEN permissions
2021-09-16 15:15:55 +01:00
Bo Anderson
f38a3239e6
workflows: reduce GITHUB_TOKEN permissions 2021-09-15 15:10:11 +01:00
XuehaiPan
3f96d963f7 style: fix inconsistent code style for shell scripts 2021-09-15 14:59:01 +08:00
Bo Anderson
9d168ff483
workflows: fix gh parsing 2021-09-10 19:25:53 +01:00
Bo Anderson
aebcd5fdd4
workflows: don't make new branch track master 2021-09-10 19:01:19 +01:00
Bo Anderson
9692364211
workflows: set GITHUB_TOKEN for gh usage 2021-09-10 18:50:11 +01:00
Bo Anderson
4d2a2c87aa
workflows: don't silence stderr 2021-09-10 15:05:27 +01:00
Bo Anderson
e80620fea4
workflows: don't assume branch existence means the PR is open 2021-09-10 02:40:51 +01:00
Mike McQuaid
d837d5cdf4
Use GITHUB_TOKEN more consistently.
https://docs.github.com/en/actions/reference/authentication-in-a-workflow#permissions-for-the-github_token

This provides enough permissions for almost everything we want to do.

When it's not enough (e.g. for `brew update-maintainers`): generate a
dedicated, repo-specific token for when increased scopes are needed and
setup a new organisation-wide token on the new PAT format.
2021-04-06 12:18:52 +01:00
nandahkrishna
8aa0939c53
workflows/{sorbet,spdx}: use origin_branch with git-try-push 2021-04-02 10:14:18 +05:30
nandahkrishna
bf55ced33b
workflows: fix commit signing 2021-03-29 13:59:54 +05:30
nandahkrishna
1b674cdfec
workflows: enable commit signing for BrewTestBot 2021-03-25 02:08:20 +05:30
Mike McQuaid
fd69a74075
github/workflows: use macos-latest.
macos-11.0 capacity is too low for us at the moment.
2021-01-06 09:59:20 +00:00
Markus Reiter
faa99dfe0c
Run sorbet workflow on Big Sur. 2020-12-11 03:50:33 +01:00
Markus Reiter
783191e3da Allow running sorbet workflow manually. 2020-11-20 19:52:13 +01:00
Markus Reiter
257855a929 Run sorbet workflow on macOS. 2020-11-20 19:17:17 +01:00
Markus Reiter
4382ee9d14 Remove files.yaml for Sorbet. 2020-10-10 19:10:58 +02:00
Issy Long
189d10b32b
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.
2020-09-21 08:59:33 +01:00