fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
fdb1d9552
master
1name : "Update Rust versions" 2 3sources : 4rust_stable_version : 5kind : shell 6spec : 7shell : bash 8command : | 9set -e 10# Check that we have latest stable. 11if rustup check | grep '^stable-.*[uU]pdate available'; then 12echo >&2 "Rust toolchain 'stable' is stale, please update it" 13exit 1 14fi 15stable_rust_version=$("$(rustup +stable which rustc)" --version | cut -d' ' -f2) 16echo "${stable_rust_version%.*}" 17debian_stable_rust_version : 18kind : shell 19spec : 20command : | 21build_tools/version-available-in-debian.sh stable rustc 22 23targets : 24update_rust_stable : 25name : "Update Rust stable" 26sourceid : rust_stable_version 27kind : file 28spec : 29file : .github/actions/rust-toolchain/action.yml 30matchpattern : '\(stable\) echo \d+\.\d+ ;;.*' 31replacepattern : '(stable) echo {{ source "rust_stable_version" }} ;; # updatecli.d/rust.yml' 32update_rust_stable2 : 33name : "Update Rust stable #2" 34sourceid : rust_stable_version 35kind : file 36spec : 37file : .github/workflows/lint-dependencies.yml 38matchpattern : 'rust-version: \d+\.\d+\b.*' 39replacepattern : 'rust-version: {{ source "rust_stable_version" }} # updatecli.d/rust.yml' 40update_msrv : 41name : "Update MSRV" 42sourceid : rust_stable_version 43kind : file 44spec : 45file : .github/actions/rust-toolchain/action.yml 46matchpattern : '\(msrv\) echo \d+\.\d+ ;;.*' 47replacepattern : '(msrv) echo {{ source "debian_stable_rust_version" }} ;; # updatecli.d/rust.yml'