Skip to content

Commit 35540d2

Browse files
authored
Prepare for v0.2.0 (#43)
1 parent d111e0a commit 35540d2

File tree

17 files changed

+30
-29
lines changed

17 files changed

+30
-29
lines changed

Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,10 @@ ifndef VERSION_SHORT
4444
$(error "VERSION_SHORT must be set")
4545
endif
4646
$(SED_I) "s/version: [0-9]+\.[0-9]+\.[0-9]+/version: $(BUF_VERSION)/g" action.yml README.md examples/*.yaml examples/*/*.yaml
47-
$(SED_I) "s/buf-action@v[0-9]+\.[0-9]+[\.[0-9]+]?/buf-action@v$(VERSION_SHORT)/g" README.md examples/*.yaml examples/*/*.yaml
47+
$(SED_I) "s/buf-action@v[0-9]+(\.[0-9]+)?(\.[0-9]+)?/buf-action@v$(VERSION_SHORT)/g" README.md examples/*.yaml examples/*/*.yaml
4848
$(SED_I) "s/\"version\": \"[0-9]+\.[0-9]+\.[0-9]+\"/\"version\": \"$(VERSION)\"/g" package.json
4949
$(SED_I) "s/^ BUF_VERSION: \"[0-9]+\.[0-9]+\.[0-9]+\"/ BUF_VERSION: \"$(BUF_VERSION)\"/g" .github/workflows/ci.yaml
50+
npm prune
5051

5152
.PHONY: generate
5253
generate: node_modules ## Regenerate licenses

README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ubuntu-latest
3737
steps:
3838
- uses: actions/checkout@v4
39-
- uses: bufbuild/buf-action@v0.1
39+
- uses: bufbuild/buf-action@v0.2
4040
with:
4141
username: ${{ secrets.BUF_USERNAME }}
4242
token: ${{ secrets.BUF_TOKEN }}
@@ -57,7 +57,7 @@ To customize the behavior of the action, you can set the following parameters in
5757
Add these parameters under the `with` section of the `uses` step in the workflow file.
5858

5959
```yaml
60-
- uses: bufbuild/buf-action@v0.1
60+
- uses: bufbuild/buf-action@v0.2
6161
with:
6262
...
6363
```
@@ -101,7 +101,7 @@ To disable parts of the workflow, each step corresponds to a boolean flag in the
101101
For example to disable formatting set the parameter `format` to `false`:
102102

103103
```yaml
104-
- uses: bufbuild/buf-action@v0.1
104+
- uses: bufbuild/buf-action@v0.2
105105
with:
106106
format: false
107107
```
@@ -113,7 +113,7 @@ See [action.yml](action.yml) for all available parameters.
113113
For reproducible builds, you can pin to an explicit version of `buf` by setting `version`.
114114

115115
```yaml
116-
- uses: bufbuild/buf-action@v0.1
116+
- uses: bufbuild/buf-action@v0.2
117117
with:
118118
version: 1.34.0
119119
```
@@ -135,7 +135,7 @@ The `username` and `token` values should be
135135
The `token` value can be [generated from the BSR UI](https://buf.build/docs/bsr/authentication#create-an-api-token).
136136

137137
```yaml
138-
- uses: bufbuild/buf-action@v0.1
138+
- uses: bufbuild/buf-action@v0.2
139139
with:
140140
username: ${{ secrets.BUF_USERNAME }}
141141
token: ${{ secrets.BUF_TOKEN }}
@@ -166,7 +166,7 @@ jobs:
166166
runs-on: ubuntu-latest
167167
steps:
168168
- uses: actions/checkout@v4
169-
- uses: bufbuild/buf-action@v0.1
169+
- uses: bufbuild/buf-action@v0.2
170170
with:
171171
username: ${{ secrets.BUF_USERNAME }}
172172
token: ${{ secrets.BUF_TOKEN }}
@@ -179,7 +179,7 @@ To run the action for parameters not declared at the root of the repository,
179179
set the parameter `input` to the directory of your `buf.yaml` file.
180180

181181
```yaml
182-
- uses: bufbuild/buf-action@v0.1
182+
- uses: bufbuild/buf-action@v0.2
183183
with:
184184
input: <path/to/module>
185185
```
@@ -188,7 +188,7 @@ Breaking change detection by default will use the `input` value as a subdirector
188188
To customize this behavior, set the parameter `breaking_against` to the desired input.
189189

190190
```yaml
191-
- uses: bufbuild/buf-action@v0.1
191+
- uses: bufbuild/buf-action@v0.2
192192
with:
193193
input: <path/to/module>
194194
breaking_against: ${{ github.event.repository.clone_url }}#format=git,commit=${{ github.event.pull_request.base.sha }},subdir=<path/to/module>
@@ -205,7 +205,7 @@ and then set the value of `breaking_against` to the path of the base.
205205
with:
206206
path: base
207207
ref: ${{ github.event.pull_request.base.sha }}
208-
- uses: bufbuild/buf-action@v0.1
208+
- uses: bufbuild/buf-action@v0.2
209209
with:
210210
input: head/<path/to/module>
211211
breaking_against: base/<path/to/module>
@@ -220,7 +220,7 @@ This will install `buf` and optionally login to the schema registry but no addit
220220
Subsequent steps will have `buf` available in their $PATH and can invoke `buf` directly.
221221

222222
```yaml
223-
- uses: bufbuild/buf-action@v0.1
223+
- uses: bufbuild/buf-action@v0.2
224224
with:
225225
setup_only: true
226226
- run: buf build --error-format github-actions
@@ -234,7 +234,7 @@ To trigger steps on different events use the GitHub action context to deduce the
234234
For example to enable formatting checks on both pull requests and push create an expression for the parameter `format`:
235235

236236
```yaml
237-
- uses: bufbuild/buf-action@v0.1
237+
- uses: bufbuild/buf-action@v0.2
238238
with:
239239
format: ${{ contains(fromJSON('["push", "pull_request"]'), github.event_name) }}
240240
```
@@ -247,7 +247,7 @@ To conditionally run checks based on user input, use the GitHub action context t
247247
For example to disable breaking change detection on commits, create an expression on the parameter `breaking` to check the contents of the commit message:
248248

249249
```yaml
250-
- uses: bufbuild/buf-action@v0.1
250+
- uses: bufbuild/buf-action@v0.2
251251
with:
252252
breaking: |
253253
contains(fromJSON('["push", "pull_request"]'), github.event_name) &&

examples/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- uses: bufbuild/buf-action@v0.1
16+
- uses: bufbuild/buf-action@v0.2
1717
with:
1818
username: ${{ secrets.BUF_USERNAME }}
1919
token: ${{ secrets.BUF_TOKEN }}

examples/disable-skip/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v4
18-
- uses: bufbuild/buf-action@v0.1
18+
- uses: bufbuild/buf-action@v0.2
1919
with:
2020
username: ${{ secrets.BUF_USERNAME }}
2121
token: ${{ secrets.BUF_TOKEN }}

examples/only-checks/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: bufbuild/buf-action@v0.1
14+
- uses: bufbuild/buf-action@v0.2

examples/only-setup-defaults/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
17-
- uses: bufbuild/buf-action@v0.1
17+
- uses: bufbuild/buf-action@v0.2
1818
with:
1919
setup_only: true
2020
- env:

examples/only-setup/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: bufbuild/buf-action@v0.1
13+
- uses: bufbuild/buf-action@v0.2
1414
with:
1515
# Add username or token secrets to your repository settings to
1616
# authenticate with the Buf Schema Registry.

examples/only-sync/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: bufbuild/buf-action@v0.1
13+
- uses: bufbuild/buf-action@v0.2
1414
with:
1515
username: ${{ secrets.BUF_USERNAME }}
1616
token: ${{ secrets.BUF_TOKEN }}

examples/push-on-changes/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- uses: actions/checkout@v4
22-
- uses: bufbuild/buf-action@v0.1
22+
- uses: bufbuild/buf-action@v0.2
2323
with:
2424
username: ${{ secrets.BUF_USERNAME }}
2525
token: ${{ secrets.BUF_TOKEN }}

examples/skip-on-commits/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: bufbuild/buf-action@v0.1
13+
- uses: bufbuild/buf-action@v0.2
1414
with:
1515
username: ${{ secrets.BUF_USERNAME }}
1616
token: ${{ secrets.BUF_TOKEN }}

examples/skip-on-labels/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v4
15-
- uses: bufbuild/buf-action@v0.1
15+
- uses: bufbuild/buf-action@v0.2
1616
with:
1717
username: ${{ secrets.BUF_USERNAME }}
1818
token: ${{ secrets.BUF_TOKEN }}

examples/validate-push/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: bufbuild/buf-action@v0.1
13+
- uses: bufbuild/buf-action@v0.2
1414
with:
1515
# Username and token are required to authenticate with the Buf Schema Registry.
1616
username: ${{ secrets.BUF_USERNAME }}

examples/version-env/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: bufbuild/buf-action@v0.1
14+
- uses: bufbuild/buf-action@v0.2
1515
with:
1616
setup_only: true
1717
- run: buf version

examples/version-input/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- uses: bufbuild/buf-action@v0.1
12+
- uses: bufbuild/buf-action@v0.2
1313
with:
1414
setup_only: true
1515
version: 1.34.0

examples/version-latest/buf-ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
12-
- uses: bufbuild/buf-action@v0.1
12+
- uses: bufbuild/buf-action@v0.2
1313
with:
1414
setup_only: true
1515
- run: buf version

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "buf-action",
3-
"version": "0.1.4",
3+
"version": "0.2.0",
44
"description": "GitHub Action for buf",
55
"main": "src/main.ts",
66
"scripts": {

0 commit comments

Comments
 (0)