Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ jobs:
rustup default 1.99.0 # [group:rust_1.99.0]

# Fetch the program version.
VERSION="$(cargo pkgid | cut -d# -f2 | cut -d: -f2)"
PKGID="$(cargo pkgid)"
VERSION="${PKGID##*[#@:]}"

# Determine if the release already exists.
if gh release view "v$VERSION" &> /dev/null; then
Expand Down
3 changes: 2 additions & 1 deletion toast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,8 @@ tasks:
- src
command: |
# Fetch the program version.
VERSION="$(cargo-offline pkgid | grep --extended-regexp --only-matching '[0-9.]+$')"
PKGID="$(cargo-offline pkgid)"
VERSION="${PKGID##*[#@:]}"

# If this version of the package already exists on crates.io, there's nothing more to do.
if cargo-online search docuum | grep "docuum = \"$VERSION\"" > /dev/null; then
Expand Down
Loading