cargo-binstall/.github/scripts/extract-tag-from-release-commit.sh
Félix Saparelli 4b00f5f143
Split crates and clean up structure of codebase (#294)
Co-authored-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-08-20 11:24:12 +00:00

6 lines
167 B
Bash
Executable file

#!/bin/bash
set -euxo pipefail
message="$(head -n1 <<< "$COMMIT_MESSAGE")"
version="$(cut -d ' ' -f 2 <<< "${message}")"
echo "::set-output name=version::${version}"