Skip to content

Commit 9b430eb

Browse files
authored
chore: Escape sed ampersand in release script (pola-rs#24631)
1 parent 71a7e43 commit 9b430eb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release-python.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ jobs:
147147
sed -i "s/pub fn _polars_runtime_64/pub fn _$SNAKE_CASE/" crates/polars-python/src/c_api/mod.rs
148148
- name: Set runtime repr in plr
149149
run: |
150-
sed -i "s/^pub static RUNTIME_REPR: &str = \"unknown\";$/pub static RUNTIME_REPR: &str = \"rt$(echo '${{ matrix.package }}' | cut -d '-' -f 3)\";/g" crates/polars-python/src/c_api/mod.rs
150+
sed -i "s/^pub static RUNTIME_REPR: \&str = \"unknown\";$/pub static RUNTIME_REPR: \&str = \"rt$(echo '${{ matrix.package }}' | cut -d '-' -f 3)\";/g" crates/polars-python/src/c_api/mod.rs
151151
- name: Update 64-bit runtime to bigidx
152152
if: matrix.package == 'polars-runtime-64'
153153
run: |
@@ -308,7 +308,7 @@ jobs:
308308
sed $SED_INPLACE "s/pub fn _polars_runtime_64/pub fn _$SNAKE_CASE/" crates/polars-python/src/c_api/mod.rs
309309
- name: Set runtime repr in plr
310310
run: |
311-
sed $SED_INPLACE "s/^pub static RUNTIME_REPR: &str = \"unknown\";$/pub static RUNTIME_REPR: &str = \"rt$(echo '${{ matrix.package }}' | cut -d '-' -f 3)\";/g" crates/polars-python/src/c_api/mod.rs
311+
sed $SED_INPLACE "s/^pub static RUNTIME_REPR: \&str = \"unknown\";$/pub static RUNTIME_REPR: \&str = \"rt$(echo '${{ matrix.package }}' | cut -d '-' -f 3)\";/g" crates/polars-python/src/c_api/mod.rs
312312
- name: Update 64-bit runtime to bigidx
313313
if: matrix.package == 'polars-runtime-64'
314314
run: |

0 commit comments

Comments
 (0)