Commit 3f6abeb 1 parent 60d4ae8 commit 3f6abeb Copy full SHA for 3f6abeb
File tree 2 files changed +5
-2
lines changed
packages/cli/src/commands
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 39
39
run : yarn docs
40
40
41
41
- name : Publish to Cloudflare Pages
42
+ if : github.event.pull_request.head.repo.full_name == github.repository
42
43
id : cloudflare_publish
43
44
uses : cloudflare/pages-action@13c6a2f35417aaf1906cdbb1f6faf6c72c697b08
44
45
with :
Original file line number Diff line number Diff line change @@ -31,7 +31,8 @@ export const handler = async (argv: Arguments<Options>): Promise<void> => {
31
31
const deployData = config && JSON . parse ( readFileSync ( config , { encoding : "utf8" } ) ) ;
32
32
const labels = [ ] ;
33
33
34
- const provider = new JsonRpcProvider ( rpc || "http://localhost:8545" ) ;
34
+ const rpcUrl = rpc || "http://localhost:8545" ;
35
+ const provider = new JsonRpcProvider ( rpcUrl ) ;
35
36
const World = new Contract ( world , WorldAbi , provider ) ;
36
37
37
38
if ( deployData ) {
@@ -57,11 +58,12 @@ export const handler = async (argv: Arguments<Options>): Promise<void> => {
57
58
58
59
labels . push ( ...components , ...systems ) ;
59
60
}
60
-
61
61
await execLog ( "cast" , [
62
62
"run" ,
63
63
...labels . map ( ( label ) => [ "--label" , `${ label [ 1 ] } :${ label [ 0 ] } ` ] ) . flat ( ) ,
64
64
...( debug ? [ "--debug" ] : [ ] ) ,
65
+ `--rpc-url` ,
66
+ `${ rpcUrl } ` ,
65
67
`${ tx } ` ,
66
68
] ) ;
67
69
You can’t perform that action at this time.
0 commit comments