37 Commits

Author SHA1 Message Date
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
Michka Popoff
2f73ca19b6
ci: move to ubuntu latest
Add coverage test using ubuntu 24.04

Not changing the default build CI version for core yet.
2024-11-03 22:55:30 +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
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
Carlo Cabrera
b14d462481
workflows/spdx: fix actionlint errors 2023-04-11 00:03:57 +08: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
Shaun Jackman
0de4282511
CI: Use ubuntu-22.04 rather than ubuntu-latest (ubuntu-20.04)
Use ubuntu-22.04 for the CI tests rather than ubuntu-latest,
which is currently ubuntu-20.04.
2022-09-06 14:16:16 +01:00
Mike McQuaid
56cca1edd3
.github/workflows: various fixes.
- don't try to `brew update-sponsors`, @BrewTestBot doesn't have
  `admin:org` rights, nor should they
- allow testing the `maintainers-man-completions` workflow on branches
- cache RubyGems for `brew generate-man-completions`
- add `workflow_dispatch` support to `spdx` workflow for easier testing
2022-09-05 13:27:50 +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
92d107d666
Autoformat YAML files
Extracted the `.rubocop_todo.yml` change from #10397 so thought I'd do
this to all committed (non-vendor) YAML files.
2021-01-26 10:16:32 +00:00
Mike McQuaid
ca7339da21 workflows: reduce scheduled PR workflow's frequency.
Once every 24h should be sufficient for both of these.
2020-09-04 14:11:23 +01:00
Mike McQuaid
9ae0208347 workflows: improve scheduled behaviour. 2020-08-26 14:24:58 +01:00
Mike McQuaid
c6a5ea5f11 workflows: don't test paths on master.
This avoids weirdness like the merged PR commits being pushed to scheduled opened PRs after merging.

It also avoids wasting resources.
2020-08-26 14:02:44 +01:00
Mike McQuaid
d550ed65ac
Scheduled workflows fixes
- Ensure `spdx.yml` has same fixes as `tapioca.yml`.
- Don't `reset --hard` to ensure that `brew` commands used are those in
  the same branch rather than always from `origin/master`
- Don't check for an existing branch but instead force-push to it if
  there's any updates.
- Provide sample `brew typecheck` command that can be used.
2020-08-24 15:28:16 +01:00
Mike McQuaid
235a663df0
scheduled workflows: fix branch, add new files.
- ensure we reset to `origin/master` so we only have the commit we care
  about in the PR
- ensure we `git add` to include any new files
- don't use `git commit -a` and instead rely only on files added with
  `git add`
2020-08-21 16:51:01 +01:00
Mike McQuaid
1d3adda693
workflows: cleanup/fix tapioca and spdx update. 2020-08-21 15:34:57 +01:00
Rylan Polster
90d9454d1e utils/spdx: add support for complex expressions
Co-authored-by: Seeker <meaningseeking@protonmail.com>
2020-08-19 12:47:58 -04:00
Mike McQuaid
844c330cc5
workflows: test on "push" not "pull_request".
This ensures they have access to the correct secrets.
2020-08-11 14:01:27 +01:00
Mike McQuaid
3e4da13934
Cleanup more GitHub Actions usage
Increase consistency between workflows, use more of our actions and
`@main`.
2020-08-06 19:35:39 +01:00
Jonathan Chang
bacc40b5be workflows: run spdx only on Homebrew/brew 2020-08-04 10:44:16 +10:00
Jonathan Chang
44198b7105 workflows: fix crontab 2020-07-19 00:19:41 +10:00
Bo Anderson
4a167d7943 workflows: auto create PRs for license data updates 2020-07-17 14:22:19 +01:00