Git config --global user.email = "email@example.com" and user.name error in GitHub action - Stack Overflow

PHOTO EMBED

Tue Jan 31 2023 01:09:15 GMT+0000 (Coordinated Universal Time)

Saved by @gebaby #yaml

import { context } from '@actions/github';

await exec(`git config --local user.name "${context.actor}"`);
await exec(`git config --local user.email "github-action-${context.actor}@users.noreply.github.com"`); // This is basically a bogus email, but you get the idea
content_copyCOPY

https://stackoverflow.com/questions/61432453/git-config-global-user-email-emailexample-com-and-user-name-error-in-gith?answertab