Skip to content

Commit 1cad6a5

Browse files
authored
Link to bento from README (#4)
* Link to bento * Use ?? over typeof * Update format action * Format code * Update CHANGELOG
1 parent db795ff commit 1cad6a5

File tree

4 files changed

+22
-13
lines changed

4 files changed

+22
-13
lines changed

.github/workflows/format.yml

+9-7
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
---
2-
name: format
2+
name: Format
33

44
on:
55
push:
66
branches-ignore:
7-
- master
7+
- main
88
workflow_dispatch: {}
99

1010
jobs:
11-
fix:
11+
commit:
12+
name: Format code
1213
runs-on: ubuntu-latest
1314
timeout-minutes: 30
1415
steps:
1516
- name: Checkout
16-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1718
with:
1819
ref: ${{ github.head_ref }}
1920
token: ${{ secrets.GH_TOKEN }}
2021
- name: Import GPG key
21-
uses: crazy-max/ghaction-import-gpg@v5
22+
uses: crazy-max/ghaction-import-gpg@v6
2223
with:
2324
git_user_signingkey: true
2425
git_commit_gpgsign: true
@@ -31,9 +32,10 @@ jobs:
3132
- name: Format
3233
run: npm run format
3334
- name: Commit
34-
uses: stefanzweifel/git-auto-commit-action@v4
35+
uses: stefanzweifel/git-auto-commit-action@v5
36+
if: always()
3537
with:
36-
commit_message: Run format
38+
commit_message: Format code
3739
commit_user_name: ${{ secrets.GIT_USER_NAME }}
3840
commit_user_email: ${{ secrets.GIT_USER_EMAIL }}
3941
commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}>

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](https://semver.org/).
77

8+
## 1.3.0 / 2024-09-09
9+
10+
### Added
11+
12+
- New config option `checksumPrefix` to support compatible distributions like Bento.
13+
814
## 1.2.4 / 2022-11-28
915

1016
- No changes.

README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,22 @@ you can use the `include` property,
148148

149149
#### Bento support
150150

151-
If you need Serverless Bento, you can change `src` and `checksumPrefix` properties:
151+
If you need Serverless [Bento], set the `src` and `checksumPrefix` properties,
152152

153153
```json
154154
{
155155
"blobpack": {
156156
"name": "benthos-lambda",
157-
"version": "4.10.0",
157+
"version": "1.2.0",
158158
"platform": "linux_amd64",
159159
"checksumPrefix": "bento",
160160
"src": "https://github.com/warpstreamlabs/bento/releases/download"
161161
}
162162
}
163163
```
164164

165+
[Bento]: https://warpstreamlabs.github.io/bento/
166+
165167
### CLI
166168

167169
```

lib/config.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,10 @@ export const loadConfig = async (configPath) => {
1010
)
1111
}
1212

13-
if (typeof config.checksumPrefix === 'undefined') {
14-
config.checksumPrefix = 'benthos'
13+
return {
14+
...config,
15+
checksumPrefix: config.checksumPrefix ?? 'benthos'
1516
}
16-
17-
return config
1817
}
1918

2019
export const loadJson = async (name) => {

0 commit comments

Comments
 (0)