Skip to content

Commit cb34ef1

Browse files
committed
feat(CI): update README automatically
1 parent c3906a7 commit cb34ef1

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

.github/workflows/go.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
uses: cycjimmy/semantic-release-action@v2
3636
with:
3737
semantic_version: 16
38+
extra_plugins: |
39+
@google/semantic-release-replace-plugin
40+
@semantic-release/git
3841
env:
3942
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4043

@@ -87,4 +90,4 @@ jobs:
8790
tags: ${{ steps.meta.outputs.tags }}
8891
labels: ${{ steps.meta.outputs.labels }}
8992
platforms: linux/amd64,linux/arm64
90-
push: ${{ github.event_name != 'pull_request' }}
93+
push: ${{ github.event_name != 'pull_request' }}

.releaserc

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,36 @@
22
"plugins": [
33
"@semantic-release/commit-analyzer",
44
"@semantic-release/release-notes-generator",
5-
"@semantic-release/github"
5+
[
6+
"@google/semantic-release-replace-plugin",
7+
{
8+
"replacements": [
9+
{
10+
"files": [
11+
"README.md"
12+
],
13+
"from": "codingpot/alertmanager-discord:v.+",
14+
"to": "codingpot/alertmanager-discord:v${nextRelease.version}",
15+
"results": [
16+
{
17+
"file": "README.md",
18+
"hasChanged": true,
19+
"numMatches": 1,
20+
"numReplacements": 1
21+
}
22+
],
23+
"countMatches": true
24+
}
25+
]
26+
}
27+
],
28+
[
29+
"@semantic-release/git",
30+
{
31+
"assets": [
32+
"README.md"
33+
]
34+
}
35+
]
636
]
737
}

0 commit comments

Comments
 (0)