Skip to content

Commit

Permalink
ci: use release type for checking for new release
Browse files Browse the repository at this point in the history
  • Loading branch information
MLenterman committed Feb 26, 2024
1 parent b190fca commit 5db861c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
outputs:
version-next: ${{ steps.next-version.outputs.release-version }}
version-next-tag: ${{ steps.next-version.outputs.release-tag }}
version-next-type: ${{ steps.next-version.outputs.release-type }}
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
Expand Down Expand Up @@ -44,8 +45,7 @@ jobs:
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
if: >-
${{ needs.analyze-commits.outputs.version-next != '' &&
needs.analyze-commits.outputs.version-next != null }}
${{ needs.analyze-commits.outputs.version-next-type != '' }}
with:
version: ${{ needs.analyze-commits.outputs.version-next }}
docker-image-repo: ${{ vars.DOCKER_IMAGE_REPOSITORY }}
Expand Down
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
],
[
"@semantic-release/exec", {
"verifyReleaseCmd": "echo 'release-tag=v${nextRelease.version}' >> '$GITHUB_OUTPUT'; echo 'release-version=${nextRelease.version}' >> '$GITHUB_OUTPUT'"
"verifyReleaseCmd": "echo 'release-tag=v${nextRelease.version}' >> '$GITHUB_OUTPUT'; echo 'release-version=${nextRelease.version}' >> '$GITHUB_OUTPUT'; echo 'release-type=${nextRelease.type}' >> '$GITHUB_OUTPUT'"
}
],
[
Expand Down

0 comments on commit 5db861c

Please sign in to comment.