Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: move deployment test dependencies out of main remix deps #2080

Merged
merged 22 commits into from
Feb 23, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: update saving current git user
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Feb 22, 2022
commit aeadfa83d7e40d4ee91b0d0b419789708209bce5
14 changes: 10 additions & 4 deletions scripts/deployment-test/cf-pages.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,16 @@ async function createRepoIfNeeded() {
return repo.data;
}

let currentGitUser = {
email: execSync("git config --get user.email").toString().trim(),
name: execSync("git config --get user.name").toString().trim(),
};
let currentGitUser = {};

try {
currentGitUser = {
email: execSync("git config --get user.email").toString().trim(),
name: execSync("git config --get user.name").toString().trim(),
};
} catch {
// git user not set
}

let spawnOpts = getSpawnOpts(PROJECT_DIR);

Expand Down