Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
7d7b8077
Unverified
Commit
7d7b8077
authored
4 years ago
by
Dawid Dziurla
Browse files
Options
Downloads
Patches
Plain Diff
pr-publish: use workflow_dispatch trigger
parent
698ac63a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/dev-cmd/pr-publish.rb
+5
-1
5 additions, 1 deletion
Library/Homebrew/dev-cmd/pr-publish.rb
docs/Manpage.md
+2
-0
2 additions, 0 deletions
docs/Manpage.md
manpages/brew.1
+4
-0
4 additions, 0 deletions
manpages/brew.1
with
11 additions
and
1 deletion
Library/Homebrew/dev-cmd/pr-publish.rb
+
5
−
1
View file @
7d7b8077
...
...
@@ -16,6 +16,8 @@ module Homebrew
EOS
flag
"--tap="
,
description:
"Target tap repository (default: `homebrew/core`)."
flag
"--workflow="
,
description:
"Target workflow filename (default: `publish-commit-bottles.yml`)."
switch
:verbose
min_named
1
end
...
...
@@ -25,6 +27,8 @@ module Homebrew
pr_publish_args
.
parse
tap
=
Tap
.
fetch
(
Homebrew
.
args
.
tap
||
CoreTap
.
instance
.
name
)
workflow
=
Homebrew
.
args
.
workflow
||
"publish-commit-bottles.yml"
ref
=
"master"
args
.
named
.
uniq
.
each
do
|
arg
|
arg
=
"
#{
tap
.
default_remote
}
/pull/
#{
arg
}
"
if
arg
.
to_i
.
positive?
...
...
@@ -36,7 +40,7 @@ module Homebrew
end
ohai
"Dispatching
#{
tap
}
pull request #
#{
issue
}
"
GitHub
.
dispatch_event
(
user
,
repo
,
"Publish #
#{
issue
}
"
,
pull_request:
issue
)
GitHub
.
workflow_
dispatch_event
(
user
,
repo
,
workflow
,
ref
,
pull_request:
issue
)
end
end
end
This diff is collapsed.
Click to expand it.
docs/Manpage.md
+
2
−
0
View file @
7d7b8077
...
...
@@ -901,6 +901,8 @@ the repository.
*
`--tap`
:
Target tap repository (default:
`homebrew/core`
).
*
`--workflow`
:
Target workflow filename (default:
`publish-commit-bottles.yml`
).
### `pr-pull` [*`options`*] *`pull_request`* [*`pull_request`* ...]
...
...
This diff is collapsed.
Click to expand it.
manpages/brew.1
+
4
−
0
View file @
7d7b8077
...
...
@@ -1175,6 +1175,10 @@ Publish bottles for a pull request with GitHub Actions\. Requires write access t
\fB\-\-tap\fR
Target tap repository (default: \fBhomebrew/core\fR)\.
.
.TP
\fB\-\-workflow\fR
Target workflow filename (default: \fBpublish\-commit\-bottles\.yml\fR)\.
.
.SS "\fBpr\-pull\fR [\fIoptions\fR] \fIpull_request\fR [\fIpull_request\fR \.\.\.]"
Download and publish bottles, and apply the bottle commit from a pull request with artifacts generated by GitHub Actions\. Requires write access to the repository\.
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment