Skip to content

Commit 1c1c51e

Browse files
committed
Print the workspace
1 parent fad73bf commit 1c1c51e

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

.github/workflows/test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
steps:
1616
- name: Deploy Rust to GitHub Pages
17-
uses: valkyrie-language/[email protected].3
17+
uses: valkyrie-language/[email protected].4
1818
with:
1919
config: .config/rust-publish.toml
2020
mode: all

projects/publish-rs/src/commands/mod.rs

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,21 @@
1-
use crate::bindings::GithubTarget;
21
use crate::{
3-
bindings, bindings::{export, Guest},
4-
GithubError,
2+
GithubError, bindings,
3+
bindings::{GithubTarget, Guest, export},
54
};
6-
use std::collections::HashMap;
7-
use std::path::Path;
5+
use std::{collections::HashMap, path::Path};
86

97
pub struct RunningContext {}
108

119
impl Guest for RunningContext {
1210
fn run_with_config(config: String, target: GithubTarget) -> Result<(), GithubError> {
1311
match std::env::var("INPUT_CONFIG") {
14-
Ok(o) => {o}
12+
Ok(o) => {
13+
println!("Config Path: {}", o);
14+
}
1515
Err(e) => {
1616
println!("MissingConfig {}", e);
17-
return Ok(())
1817
}
1918
}
20-
2119
tokio::runtime::Builder::new_current_thread().enable_all().build()?.block_on(async {
2220
let ctx = RunningContext {};
2321
ctx.run(config).await
@@ -62,7 +60,8 @@ fn read_dir(dir_path: &str) {
6260
println!("{}", file_name.to_string_lossy());
6361
}
6462
}
65-
} else {
63+
}
64+
else {
6665
println!("Error reading directory: {}", dir_path);
6766
}
6867
}

0 commit comments

Comments
 (0)