Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit e89af86

Browse files
ci: update to internal semantic release action (#5)
* ci: update to internal semantic release action * chore: update semantic-release-action version
1 parent c789aca commit e89af86

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ jobs:
3535
with:
3636
submodules: recursive
3737
persist-credentials: false
38-
- uses: actions/setup-node@v2
39-
with:
40-
node-version: '14'
4138
- name: Install yq
4239
run: sudo snap install yq
4340
- name: Set up QEMU
@@ -78,12 +75,7 @@ jobs:
7875
cache-to: type=inline
7976

8077
- name: Semantic Release
81-
uses: cycjimmy/semantic-release-action@v2.5.4
82-
with:
83-
semantic_version: 17
84-
extra_plugins: |
85-
@semantic-release/exec
86-
@semantic-release/git
78+
uses: splunk/semantic-release-action@v1.2
8779
env:
8880
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_ADMIN }}
8981
update-semver:

.releaserc

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
2-
"branches": [
2+
"branches":
3+
[
34
'+([0-9])?(.{+([0-9]),x}).x',
45
'main',
56
'next',
@@ -9,12 +10,18 @@
910
prerelease: true
1011
}
1112
],
12-
plugins: [
13+
plugins:
14+
[
1315
"@semantic-release/commit-analyzer",
1416
"@semantic-release/release-notes-generator",
15-
["@semantic-release/exec", {
16-
"prepareCmd": 'yq -i eval ".runs.image = \"docker://ghcr.io/splunk/addonfactory-get-splunk-package-version-action:v${nextRelease.version}\"" action.yml'
17-
}],
17+
[
18+
"@semantic-release/exec",
19+
{
20+
"prepareCmd": 'yq -i eval ".runs.image = \"docker://ghcr.io/splunk/addonfactory-get-splunk-package-version-action:v${nextRelease.version}\"" action.yml',
21+
"verifyReleaseCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT",
22+
"successCmd": "echo \"new_release_published=${'true'}\" >> $GITHUB_OUTPUT",
23+
}
24+
],
1825
["@semantic-release/git", {
1926
"assets": ["action.yml"],
2027
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"

0 commit comments

Comments
 (0)