Skip to content

Commit a10d290

Browse files
committed
use sed for version
1 parent ecd417e commit a10d290

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/interoperability.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222
run: cargo build --package dust_dds_shape_main_linux --release --manifest-path dds-rtps/srcRs/DustDDS/Cargo.toml --config patch.crates-io.dust_dds.path="'dust-dds/dds'"
2323
- name: Zip executable # Zipping done here to preserve executable bit
2424
run: |
25-
version=$( cargo tree --package dust_dds --depth 0 --prefix none | tr -d 'dust_dds v' )
25+
version=$( cargo tree --package dust_dds --depth 0 --prefix none | sed -n 's/.*v\([0-9.]*\).*/\1/p' )
26+
echo $version
2627
cp ../dds-rtps/srcRs/DustDDS/target/release/dust_dds_shape_main_linux dust_dds-${version}_shape_main_linux
2728
mkdir ../artifacts
2829
zip --junk-paths ../artifacts/dust_dds-${version}_shape_main_linux.zip dust_dds-${version}_shape_main_linux

0 commit comments

Comments
 (0)