- Requires
content
permission
- Editing workflow files requires dedicated access token with
workflow
permission
var remote = $"https://{GitHubActions.Actor}:{GitHubActions.Token}@github.com/{GitHubActions.Repository}"; Git($"remote set-url origin {remote}"); Git($"config user.name {CommitterName}"); Git($"config user.email {CommitterEmail}"); Git($"add {directory}"); Git($"commit -m {message}"); Git($"push origin HEAD:{Repository.Branch}");
- Alternative?
git -c http.extraheader="AUTHORIZATION: basic ***" fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*