Skip to content
This repository has been archived by the owner on May 31, 2023. It is now read-only.

Commit

Permalink
ci: update to internal semantic release action (#14)
Browse files Browse the repository at this point in the history
* ci: update to internal semantic release action

* chore: update semantic-release-action version
  • Loading branch information
mkolasinski-splunk authored Jan 31, 2023
1 parent ec63afb commit ab15bb2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ jobs:
uses: actions/checkout@v2
with:
submodules: recursive
persist-credentials: false
- uses: actions/setup-node@v2
with:
node-version: '14'
persist-credentials: false
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
Expand Down Expand Up @@ -81,11 +78,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Semantic Release
uses: cycjimmy/[email protected]
with:
semantic_version: 17
extra_plugins: |
@semantic-release/exec
@semantic-release/git
uses: splunk/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GHCR_PAT }}
6 changes: 4 additions & 2 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,14 @@
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/exec", {
"prepareCmd": 'yq -i eval ".runs.image = \"docker://ghcr.io/splunk/addonfactory-sample-scanner:v${nextRelease.version}\"" action.yml'
"prepareCmd": 'yq -i eval ".runs.image = \"docker://ghcr.io/splunk/addonfactory-sample-scanner:v${nextRelease.version}\"" action.yml',
"verifyReleaseCmd": "echo \"version=${nextRelease.version}\" >> $GITHUB_OUTPUT",
"successCmd": "echo \"new_release_published=${'true'}\" >> $GITHUB_OUTPUT"
}],
["@semantic-release/git", {
"assets": ["action.yml"],
"message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}"
}],
"@semantic-release/github"
]
}
}

0 comments on commit ab15bb2

Please sign in to comment.