Skip to content

Commit

Permalink
don't require actor env var for commits
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Jan 16, 2025
1 parent a41fbc2 commit c73ef8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plogon/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static async Task Main(DirectoryInfo outputFolder, DirectoryInfo manifestFolder,
if (string.IsNullOrEmpty(repoName))
throw new Exception("repoName null or empty");

if (githubActor == null)
if (githubActor == null && mode == ModeOfOperation.PullRequest)
throw new Exception("GITHUB_ACTOR not set");

gitHubApi = new GitHubApi(repoOwner, repoName, token);
Expand Down

0 comments on commit c73ef8d

Please sign in to comment.