Ruoyu Zhong
ea37708591
dev-cmd/tap-new: simplify
2024-04-19 23:14:35 +08:00
Ruoyu Zhong
82ad03fe28
dev-cmd/tap-new: various improvements
...
1. Update `actions/cache` to `v4`.
2. Unset GitHub Packages tokens if unused.
3. Quote shell variables.
2024-04-19 11:10:29 +08:00
Ruoyu Zhong
7e43853216
dev-cmd/tap-new: fix GitHub Packages user
...
It should be `github.repository_owner` rather than `github.actor`.
2024-04-19 11:09:58 +08:00
Ruoyu Zhong
adbe6edc84
dev-cmd/tap-new: use actions/upload-artifact@v4
2024-04-19 11:09:56 +08:00
Ruoyu Zhong
54a5690391
dev-cmd/tap-new: throw an error when tap is installed
2024-04-19 11:02:25 +08:00
Douglas Eichelberger
c50fb2dbd2
Remove redundant cli/parser requires
2024-03-29 18:53:07 -07:00
Douglas Eichelberger
e0519d736a
Port Homebrew::DevCmd::TapNew
2024-03-22 09:33:28 -07:00
Jeroen Ooms
29cf01d442
Fix workflow for duplicate names
2023-12-16 14:36:12 +01:00
David C Hall
a3887482bb
Update tap-new.rb
2023-10-11 19:40:04 -07:00
David C Hall
8e65816335
Adding GHA permission for GitHub Packages
...
When a tap stores bottles in GitHub Packages, then the publish workflow requires the corresponding write permission.
2023-10-11 19:31:54 -07:00
Jameel Kaisar
2779b8ea7f
Add missing permissions to actions publish
...
This commit adds the missing permissions to the
actions publish script. The 'contents: write'
permission is required to publish releases and
the 'pull-requests: write' permission is required
to close the pull request after the changes are committed.
2023-10-08 22:13:59 +00:00
Jameel Kaisar
61c030b08f
Add close pr to actions publish
...
This commit enhances the publish actions script by
including a step to close the pull request after
committing the changes. The existing script deletes
the branch after pushing the commits, but lacks
the functionality to close the associated PR.
2023-10-08 18:08:56 +00:00
Bo Anderson
3b1c171184
Further split up Gemfile into groups
2023-09-27 17:33:44 +01:00
Mike McQuaid
67c118009b
Merge pull request #15308 from ZhongRuoyu/workflows-macos-13
...
workflows: run on `macos-13`
2023-04-25 15:10:37 +01:00
Douglas Eichelberger
24cf6076e8
brew style --fix
2023-04-24 20:42:39 -07:00
Ruoyu Zhong
6eaa0b2940
dev-cmd/tap-new: run brew test-bot
on macos-13
2023-04-25 11:24:00 +08:00
Issy Long
09ce7a1da6
dev-cmd/tap-new: Use actions/cache@v3
as v1 is very deprecated
...
- We forgot about this workflow when we bumped the versions of our
actual workflows as part of issue 14692.
2023-04-02 15:43:24 +01:00
Douglas Eichelberger
f4c9a96c70
Enable types in dev-cmd
2023-03-14 08:32:03 -07: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
fn ⌃ ⌥
5657e109af
Apply suggestions from code review
2021-11-22 16:34:47 -08:00
fn ⌃ ⌥
56724da0b7
tap-new: add --github-packages
switch
2021-11-19 12:35:50 -08:00
Nanda H Krishna
beed30f359
tap-new: fix invalid tap name message
2021-04-13 02:43:38 +05:30
Nanda H Krishna
f648b071ad
dev-cmd/tap-new: use Utils::Git.setup_gpg!
2021-04-02 17:21:26 +05:30
Mike McQuaid
fb1cf8f389
dev-cmd/tap-new: various tweaks.
...
- `--no-git` and `--branch` don't conflict as `--branch` is still used
for the GitHub Actions branch even with `--no-git`
- fix some README markdown linting errors
- fix some YAML/GitHub Actions configuration linting errors
2021-03-01 13:40:08 +00:00
EricFromCanada
2e982cd2a2
use odie when commands encounter errors
2021-01-26 15:36:43 -05:00
Rylan Polster
d1f3e39b7b
Update commands to generate usage banner
2021-01-18 21:20:11 -05:00
Rylan Polster
84af07f152
Merge pull request #10288 from Rylan12/refactor-named-args
...
Add named_args DSL for commands
2021-01-14 21:43:54 -05:00
Mike McQuaid
591e9d6a52
dev-cmd/tap-new: fix output on newer versions of Git.
...
Otherwise this prints to `stderr` to ask for configuration of the branch
name:
https://github.com/Homebrew/brew/pull/10323/checks?check_run_id=1701105141#step:5:51
2021-01-14 10:47:44 +00:00
Rylan Polster
da811373d3
Add named_args DSL for commands
2021-01-13 17:09:42 -05:00
EricFromCanada
f784b7107f
manpage: fixes for grammar
2020-11-16 07:56:50 -05:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
Rylan Polster
6dec175574
tap-new: don't need to checkout default branch
2020-10-15 16:56:53 -04:00
Rylan Polster
64d135d0a7
tap-new: add option for branch name
2020-10-15 15:00:35 -04:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Dawid Dziurla
843dffea78
tap-new: enable bottles publishing
...
to GitHub Releases
2020-10-02 13:49:24 +02:00
Mike McQuaid
d2fc08d942
GitHub Actions cleanup
...
- Add consistent spacing
- Remove `pull_request: []` warning
- remove identical, implicit `name` usage
- use `actions/cache@v1` for compatibility
2020-08-13 14:54:22 +01:00
Issy Long
2cf655fe98
Merge pull request #8304 from PurpleBooth/fix-warning
...
Correct warning
2020-08-11 20:15:08 +01:00
Billie Thompson
705f26734a
Correct warning
...
Currently, if you open up a action generated by the tap-new command in
the github GUI, you get a warning saying "pull_requests should be an
object". This fixes that.
This wasn't stopping anything working currently, though I suppose it may
in the future.
Co-authored-by: Issy Long <me@issyl0.co.uk>
2020-08-11 20:03:30 +02:00
Billie Thompson
b5c98090d0
Add missing id
...
This will always fail until the cache step can refer to setup step
2020-08-10 20:52:47 +02: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
Mike McQuaid
b0d26b0dcf
workflows/tests: use setup-homebrew GitHub Action.
...
This allows more code reuse.
2020-08-06 10:55:18 +01:00
Mike McQuaid
acfdbce6d4
tap-new: update GitHub Actions.
...
This should be using the split options for a better user experience
and can use both Linux and macOS now.
2020-08-04 11:57:39 +01:00
Markus Reiter
d4c2ffd705
Refactor CLI::Parser
.
2020-07-31 15:07:17 +02:00
Mike McQuaid
f94a38e4b1
tap-new: restrict new tap names.
...
Don't want to restrict this for all taps otherwise existing ones may
explode.
Fixes #7734
2020-06-12 11:42:40 +01:00
Mike McQuaid
9a654897d4
manpage: no longer mention installing from a URL.
...
This is deprecated in #7660 .
2020-05-29 17:04:42 +01:00
Mike McQuaid
e3ac94fc5d
dev-cmd: use more and cleanup new args APIs.
2020-03-05 09:40:15 +00:00
Issy Long
b3abf3d7c9
dev-cmd/tap-new: Set up GitHub Actions CI instead of Azure
...
- We recently removed Azure as a supported CI provider
(Homebrew/homebrew-test-bot PR 325), so `brew test-bot` won't run on
Azure any more.
- Homebrew CI is moving towards GitHub Actions as the standard.
2020-02-15 17:39:33 +00:00
EricFromCanada
aea6d79d21
option parser: check for extra named args
2019-12-15 00:04:45 -05:00
EricFromCanada
2f7c3afeb8
cmd: improve wording of messages, spacing
2019-12-15 00:04:45 -05:00
Abi أب
990d45881f
Use Xcode_10.2.1
...
`brew doctor` will return exit code 1 if using Xcode_10.2
```==> brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!
Warning: Your Xcode (10.2) is outdated.
Please update to Xcode 10.2.1 (or delete it).
Xcode can be updated from the App Store.
==> FAILED
```
2019-10-28 23:59:01 +01:00