1818 - ' codex-cli/package.json'
1919
2020concurrency :
21- group : release-${{ github.ref_name }}
21+ group : release-${{ github.ref }}
2222 cancel-in-progress : false
2323
2424permissions :
2525 contents : write
26- actions : read
2726 packages : write
2827 id-token : write
29- deployments : write
3028 issues : write
3129 pull-requests : write
32- discussions : write
3330 statuses : write
34- attestations : write
35- checks : read
36- security-events : write
37- pages : read
38- repository-projects : read
3931
4032jobs :
4133 preflight-tests :
@@ -54,21 +46,14 @@ jobs:
5446 shell : bash
5547 run : |
5648 set -euo pipefail
57- TOOLCHAIN=$(python3 - <<'PY'
58- import tomllib
59- from pathlib import Path
60- data = tomllib.loads(Path('code-rs/rust-toolchain.toml').read_text())
61- print(data['toolchain']['channel'])
62- PY
63- )
49+ TOOLCHAIN=$(python3 -c "import pathlib, tomllib; print(tomllib.loads(pathlib.Path('code-rs/rust-toolchain.toml').read_text())['toolchain']['channel'])")
6450 echo "channel=$TOOLCHAIN" >> "$GITHUB_OUTPUT"
6551 echo "RUST_TOOLCHAIN=$TOOLCHAIN" >> "$GITHUB_ENV"
6652
6753 - name : Install Rust toolchain
6854 uses : dtolnay/rust-toolchain@stable
6955 with :
7056 toolchain : ${{ steps.rust_toolchain.outputs.channel }}
71- profile : minimal
7257
7358 - name : Setup Rust Cache
7459 uses : Swatinem/rust-cache@v2
214199 shell : bash
215200 run : |
216201 set -euo pipefail
217- TOOLCHAIN=$(python3 - <<'PY'
218- import tomllib
219- from pathlib import Path
220- data = tomllib.loads(Path('code-rs/rust-toolchain.toml').read_text())
221- print(data['toolchain']['channel'])
222- PY
223- )
202+ TOOLCHAIN=$(python3 -c "import pathlib, tomllib; print(tomllib.loads(pathlib.Path('code-rs/rust-toolchain.toml').read_text())['toolchain']['channel'])")
224203 echo "channel=$TOOLCHAIN" >> "$GITHUB_OUTPUT"
225204 echo "RUST_TOOLCHAIN=$TOOLCHAIN" >> "$GITHUB_ENV"
226205
227206 - name : Install Rust toolchain
228207 uses : dtolnay/rust-toolchain@stable
229208 with :
230209 toolchain : ${{ steps.rust_toolchain.outputs.channel }}
231- profile : minimal
232210 targets : ${{ matrix.target }}
233211
234212 # Keep target/ across runs so Cargo can no-op when code hasn't changed
0 commit comments