mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-24 14:28:42 +00:00
Use release-meta action instead of parsing commits (#675)
This commit is contained in:
parent
02484327c1
commit
9821caa6d0
4 changed files with 25 additions and 55 deletions
16
.github/scripts/extract-release-notes.sh
vendored
16
.github/scripts/extract-release-notes.sh
vendored
|
@ -1,16 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
release_pr=$(head -n1 <<< "${COMMIT_MESSAGE:-}" | jq -Rr 'split("[()]"; "")[1] // ""')
|
||||
if [[ -z "$release_pr" ]]; then
|
||||
echo "::set-output name=notes_json::null"
|
||||
exit
|
||||
fi
|
||||
|
||||
gh \
|
||||
pr --repo "$GITHUB_REPO" \
|
||||
view "$release_pr" \
|
||||
--json body \
|
||||
--jq '"::set-output name=notes_json::\((.body | split("### Release notes")[1] // "") | tojson)"'
|
||||
|
||||
|
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
message="$(head -n1 <<< "$COMMIT_MESSAGE")"
|
||||
crate="$(cut -d ' ' -f 2 <<< "${message}")"
|
||||
version="$(cut -d ' ' -f 3 <<< "${message}")"
|
||||
echo "::set-output name=crate::${crate}"
|
||||
echo "::set-output name=version::${version}"
|
Loading…
Add table
Add a link
Reference in a new issue