File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1
- name : rustc-pullx
1
+ name : rustc-pull
2
2
3
3
on :
4
4
workflow_dispatch :
@@ -12,15 +12,18 @@ jobs:
12
12
# if: github.repository == 'rust-lang/rustc-dev-guide'
13
13
runs-on : ubuntu-latest
14
14
permissions :
15
- contents : read
15
+ contents : write
16
16
pull-requests : write
17
17
steps :
18
18
- uses : actions/checkout@v4
19
+ with :
20
+ fetch-depth : ' 0'
19
21
- name : Install stable Rust toolchain
20
22
run : rustup update stable
21
23
- uses : Swatinem/rust-cache@v2
22
24
with :
23
25
workspaces : " josh-sync"
26
+ cache-directories : " /home/runner/.cache/rustc-dev-guide-josh"
24
27
- name : Install Josh
25
28
run : RUSTFLAGS="--cap-lints warn" cargo +stable install josh-proxy --git https://github.com/josh-project/josh --tag r24.10.04
26
29
- name : Setup bot git name and email
37
40
- name : Create pull request
38
41
run : |
39
42
gh pr create -B master --title 'Rustc pull update' --body 'Latest update from rustc.'
40
- # env:
41
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43
+ env :
44
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ use xshell::{cmd, Shell};
9
9
/// Used for rustc syncs.
10
10
const JOSH_FILTER : & str = ":/src/doc/rustc-dev-guide" ;
11
11
const JOSH_PORT : u16 = 42042 ;
12
- const UPSTREAM_REPO : & str = "rust-lang /rust" ;
12
+ const UPSTREAM_REPO : & str = "kobzol /rust" ;
13
13
14
14
pub struct GitSync {
15
15
dir : PathBuf ,
@@ -184,6 +184,7 @@ impl GitSync {
184
184
directories:: ProjectDirs :: from ( "org" , "rust-lang" , "rustc-dev-guide-josh" ) . unwrap ( ) ;
185
185
user_dirs. cache_dir ( ) . to_owned ( )
186
186
} ;
187
+ eprintln ! ( "Using cache dir at {}" , local_dir. display( ) ) ;
187
188
188
189
// Start josh, silencing its output.
189
190
let mut cmd = process:: Command :: new ( "josh-proxy" ) ;
You can’t perform that action at this time.
0 commit comments