mirror of
https://github.com/sonr-io/sonr.git
synced 2026-08-03 18:01:39 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
eb0777ebb4 | ||
|
|
ed5ee034b8 |
@@ -2,7 +2,7 @@
|
|||||||
name = "cz_conventional_commits"
|
name = "cz_conventional_commits"
|
||||||
tag_format = "v$version"
|
tag_format = "v$version"
|
||||||
version_scheme = "semver"
|
version_scheme = "semver"
|
||||||
version = "0.5.23"
|
version = "0.5.24"
|
||||||
update_changelog_on_bump = true
|
update_changelog_on_bump = true
|
||||||
major_version_zero = true
|
major_version_zero = true
|
||||||
changelog_file = "./docs/docs/changelog/index.md"
|
changelog_file = "./docs/docs/changelog/index.md"
|
||||||
|
|||||||
@@ -3,14 +3,30 @@ name: Versioned Release
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "*"
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
check-release:
|
||||||
|
name: Check Existing Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
outputs:
|
||||||
|
release_exists: ${{ steps.check.outputs.release_exists }}
|
||||||
|
steps:
|
||||||
|
- name: Check if release exists
|
||||||
|
id: check
|
||||||
|
run: |
|
||||||
|
RELEASE_EXISTS=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
||||||
|
"https://api.github.com/repos/onsonr/sonr/releases/tags/${GITHUB_REF#refs/tags/}" \
|
||||||
|
| jq -r 'if .message == "Not Found" then "false" else "true" end')
|
||||||
|
echo "release_exists=$RELEASE_EXISTS" >> "$GITHUB_OUTPUT"
|
||||||
|
|
||||||
goreleaser:
|
goreleaser:
|
||||||
name: Run GoReleaser
|
name: Run GoReleaser
|
||||||
|
needs: check-release
|
||||||
|
if: needs.check-release.outputs.release_exists == 'false'
|
||||||
permissions: write-all
|
permissions: write-all
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|||||||
@@ -1,3 +1,9 @@
|
|||||||
|
## v0.5.24 (2024-12-11)
|
||||||
|
|
||||||
|
### Feat
|
||||||
|
|
||||||
|
- prevent duplicate releases
|
||||||
|
|
||||||
## v0.5.23 (2024-12-11)
|
## v0.5.23 (2024-12-11)
|
||||||
|
|
||||||
### Refactor
|
### Refactor
|
||||||
|
|||||||
Reference in New Issue
Block a user