diff --git a/.releaserc.json b/.releaserc.json index 006f1a9..168a606 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -6,7 +6,7 @@ "@semantic-release/changelog", ["@semantic-release/exec", { "prepareCmd": "sed -i 's/^version = \\\"[^\\\"]*\\\"/version = \\\"${nextRelease.version}\\\"/' Cargo.toml && cargo check", - "successCmd": "echo \"::notice::release ${nextRelease.version} published; dispatching crate publish\" && gh workflow run publish.yml --ref main -f tag=v${nextRelease.version}" + "successCmd": "gh api -X POST repos/${GITHUB_REPOSITORY}/actions/workflows/publish.yml/dispatches -f ref=main -f 'inputs[tag]=v${nextRelease.version}'" }], ["@semantic-release/git", { "assets": ["Cargo.toml", "Cargo.lock", "CHANGELOG.md"],