Skip to content

Commit e732b0c

Browse files
authored
Merge pull request #31 from github/tests-fix
Fix an issue with the tests where they update a file every time they are run.
2 parents 44139e4 + 567dfda commit e732b0c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

internal/push/push.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,11 @@ func (pushService *pushService) pushGit(repository *github.Repository, initialPu
168168
return errors.Wrap(err, "Error pushing Action to GitHub Enterprise Server.")
169169
}
170170
}
171+
172+
err = gitRepository.DeleteRemote(remoteName)
173+
if err != nil {
174+
return errors.Wrap(err, "Error removing repository remote.")
175+
}
171176
return nil
172177
}
173178

0 commit comments

Comments
 (0)