File tree 2 files changed +13
-0
lines changed
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 65
65
name : Local rustup
66
66
runs-on : ubuntu-latest
67
67
68
+ env :
69
+ PROMOTE_RELEASE_RUSTUP_OVERRIDE_VERSION : 99.0.0
70
+
68
71
strategy :
69
72
fail-fast : false
70
73
matrix :
Original file line number Diff line number Diff line change @@ -96,6 +96,16 @@ impl Context {
96
96
}
97
97
98
98
fn get_next_rustup_version ( & self , sha : & str ) -> anyhow:: Result < String > {
99
+ // Allow the version to be overridden manually, for example to test the release process
100
+ if let Ok ( version) = std:: env:: var ( "PROMOTE_RELEASE_RUSTUP_OVERRIDE_VERSION" ) {
101
+ println ! ( "Using override version: {}" , version) ;
102
+ Ok ( version)
103
+ } else {
104
+ self . get_next_rustup_version_from_github ( sha)
105
+ }
106
+ }
107
+
108
+ fn get_next_rustup_version_from_github ( & self , sha : & str ) -> anyhow:: Result < String > {
99
109
println ! ( "Getting next Rustup version from Cargo.toml..." ) ;
100
110
101
111
#[ derive( Deserialize ) ]
You can’t perform that action at this time.
0 commit comments