ci: Extract version from the probe-rs pkgid instead of the git branch name
@@ -57,8 +57,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
- tag_name: $( echo '${{ github.head_ref }}' | sed 's?release/??' )
- release_name: $( echo '${{ github.head_ref }}' | sed 's?release/??' )
+ tag_name: "$( cargo pkgid -p probe-rs | cut -d# -f2 | cut -d: -f2 )"
+ release_name: "$( cargo pkgid -p probe-rs | cut -d# -f2 | cut -d: -f2 )"
body_path: GENERATED_CHANGELOG.md
draft: true
prerelease: false
@@ -67,6 +67,6 @@ jobs:
run: |
git checkout master
cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}
- cargo release --no-confirm --execute --sign $( echo '${{ github.head_ref }}' | sed 's?release/??' )
+ cargo release --no-confirm --execute --sign $( cargo pkgid -p probe-rs | cut -d# -f2 | cut -d: -f2 )
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
\ No newline at end of file
