42 Commits

Author SHA1 Message Date
Mike McQuaid
d2269c5b30
Open issues for failed scheduled workflows
I noticed recently the SBOM workflow was failing and had been for a long
time and we'd not noticed. I've added issues for the other workflows
that run on a schedule and fixed the updating state.

I've also renamed the SBOM workflow to `sbom.yml` to match what it does.

Co-authored-by: Rylan Polster <rslpolster@gmail.com>
2025-06-13 18:43:52 +01:00
Mike McQuaid
be6cee3006
Use Homebrew/actions/*@main in Actions workflows
We've migrated Homebrew/actions to use the `main` branch now so let's
update these references.
2025-06-13 14:22:09 +01:00
Mike McQuaid
7bd8642bfc
Tweak GitHub Actions workflows
- prepare to use `main` instead of `master`.
- use synced `actionlint.yml` to simplify Homebrew/.github sync logic.
- fix some broken workflow PR opening logic.
2025-06-11 16:39:03 +01:00
Patrick Linnane
b6cad3be14
workflows: remove no-op ssh signing value
Signed-off-by: Patrick Linnane <patrick@linnane.io>
2025-03-31 16:09:20 -07:00
William Woodruff
3ec71d8acc
ci: switch to SSH signing everywhere
Signed-off-by: William Woodruff <william@yossarian.net>
2025-02-03 21:56:57 +01:00
Mike McQuaid
8dc9e117f3
github/workflows: use macos-15 GitHub Actions runners.
- Let's use this instead of macOS 14/latest when possible.
- Keep around macOS 13 to ensure we're still testing x86_64.
2024-09-30 09:02:23 +01:00
Carlo Cabrera
40567115a3
workflows: use set -xeuo pipefail globally
This makes it easier to avoid subtle shell script bugs.
2024-09-22 19:56:20 +08:00
Mike McQuaid
2be2aa0dc8
workflows: use macos-14 runner.
- Use `macos-14` instead of `macos-13` most of the time.
- For `tests` and `test default formula` builds: run on both
  macOS 13 x86_64 and macOS 14 arm64
- Pretend `macos-14` is a self-hosted runner until a new version of
  `actionlint` is released which doesn't error on `macos-14`.
2024-02-04 12:12:12 +01:00
Bo Anderson
c776379fb6
workflows/sorbet: fix pull request testing 2023-12-01 20:01:31 +00:00
Bo Anderson
6932c6568f
workflows: replace hub with gh 2023-10-06 01:52:58 +01:00
Mike McQuaid
5121567a9a
workflows: improve setup-homebrew and API usage.
- `HOMEBREW_NO_INSTALL_FROM_API` was passed in a few places
  unnecessarily
- https://github.com/Homebrew/actions/pull/393 will change the default
  behaviour of setup-homebrew so let's be explicit to speed things up
  and avoid changes when it's merged
2023-07-06 16:54:06 +01:00
Ruoyu Zhong
3575ca9bbb
workflows/sorbet: run on macos-13 2023-04-25 11:22:35 +08:00
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