Skip to content

Commit

Permalink
fix: skip git shenanigans if autofix is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ojongerius committed Oct 6, 2022
1 parent f8836d5 commit e73dd15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5576,7 +5576,7 @@ async function runAction() {
// Set Git committer username and password
git.setUserInfo(gitName, gitEmail);
}
if (isPullRequest) {
if (autoFix && isPullRequest) {
// Fetch and check out PR branch:
// - "push" event: Already on correct branch
// - "pull_request" event on origin, for code on origin: The Checkout Action
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function runAction() {
// Set Git committer username and password
git.setUserInfo(gitName, gitEmail);
}
if (isPullRequest) {
if (autoFix && isPullRequest) {
// Fetch and check out PR branch:
// - "push" event: Already on correct branch
// - "pull_request" event on origin, for code on origin: The Checkout Action
Expand Down

0 comments on commit e73dd15

Please sign in to comment.