You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+13-62
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ An action that wraps `brew bump-formula-pr` to ease the process of updating the
4
4
5
5
## Usage
6
6
7
-
One should use the [Personal Access Token](https://github.com/settings/tokens/new?scopes=public_repo) for `token` input to this Action, not the default `GITHUB_TOKEN`, because `brew bump-formula-pr` creates a fork of the formula's tap repository and creates a PR.
7
+
One should use the [Personal Access Token](https://github.com/settings/tokens/new?scopes=public_repo) for `token` input to this Action, not the default `GITHUB_TOKEN`, because `brew bump-formula-pr` creates a fork of the formula's tap repository (if needed) and then creates a pull request.
8
8
9
9
It is best to use this Action when a new tag is pushed:
10
10
@@ -15,71 +15,22 @@ on:
15
15
- '*'
16
16
```
17
17
18
-
Example of bumping any formula in any user tap:
18
+
because then, the script will extract all needed informations by itself, you just need to specify the following step in your workflow:
**note:** `USER/REPO/FORMULA` can be in the form that `brew install` would accept it. That is, for formula "baz" in foo's tap repo "homebrew-bar", one could use `foo/bar/baz` instead of `foo/homebrew-bar/baz`. This is because homebrew expects tap names to have the `homebrew-` prefix.
34
-
35
-
Example of bumping [`lazygit`](https://github.com/jesseduffield/lazygit) formula in [`Homebrew/homebrew-core`](https://github.com/Homebrew/homebrew-core) tap:
Example of bumping [`lazydocker`](https://github.com/jesseduffield/lazdockert) formula in [`Homebrew/homebrew-core`](https://github.com/Homebrew/homebrew-core) tap:
61
-
62
-
```yaml
63
-
- name: Get tag
64
-
id: tag
65
-
uses: dawidd6/action-get-tag@v1
66
-
67
-
- name: Update Homebrew formula
68
-
uses: dawidd6/action-homebrew-bump-formula@v1
69
-
with:
70
-
token: ${{secrets.GITHUB_PAT}}
71
-
formula: lazydocker
72
-
tag: ${{steps.tag.outputs.tag}}
30
+
# Optional, will be determined automatically
31
+
tag: ${{github.ref}}
32
+
# Optional, will be determined automatically
73
33
revision: ${{github.sha}}
74
-
```
75
-
76
-
... using `tag` and `revision` inputs because the formula already specifies them:
0 commit comments