-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add
--author=
flag to git-commit
cmd in new
flow
- Loading branch information
dj8yf0μl
committed
Oct 22, 2024
1 parent
22cc88d
commit f9b7660
Showing
3 changed files
with
13 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,13 +33,9 @@ jobs: | |
|
||
- name: Install packages (Linux) | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get update && sudo apt-get install --assume-yes libudev-dev git | ||
run: sudo apt-get update && sudo apt-get install --assume-yes libudev-dev | ||
|
||
- name: Carg | | ||
git --version | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<>" | ||
o check | ||
- name: Cargo check | ||
run: | | ||
cargo check -p cargo-near | ||
cargo check -p cargo-near-build --all-features | ||
|
@@ -69,13 +65,12 @@ jobs: | |
|
||
- name: Install packages (Linux) | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get update && sudo apt-get install --assume-yes libudev-dev git | ||
run: sudo apt-get update && sudo apt-get install --assume-yes libudev-dev | ||
|
||
- name: Run tests | ||
run: | | ||
git --version | ||
git config user.name "GitHub Actions Bot" | ||
git config user.email "<>" | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "nearprotocol-ci" | ||
cargo test --workspace | ||
lint: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -96,28 +96,20 @@ impl NewContext { | |
)); | ||
} | ||
|
||
// let status = std::process::Command::new("git") | ||
let child = std::process::Command::new("git") | ||
.arg("commit") | ||
.arg("-m") | ||
.arg("init") | ||
.arg("--author=nearprotocol-ci <[email protected]>") | ||
.current_dir(project_dir) | ||
.stdout(Stdio::piped()) | ||
.stderr(Stdio::piped()) | ||
// .stdout(Stdio::null()) | ||
// .stderr(Stdio::null()) | ||
// .status()?; | ||
.spawn()?; | ||
// if !status.success() { | ||
// return Err(color_eyre::eyre::eyre!( | ||
// "Failed to execute process: `git commit -m init`" | ||
// )); | ||
// } | ||
let output = child.wait_with_output()?; | ||
if !output.status.success() { | ||
println!("{}", String::from_utf8_lossy(&output.stderr)); | ||
return Err(color_eyre::eyre::eyre!( | ||
"Failed to execute process: `cargo update`" | ||
"Failed to execute process: `git commit -m init --author='nearprotocol-ci <[email protected]>'`" | ||
)); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters