Skip to content

Commit

Permalink
Merge pull request #8 from alagoutte/fixcommenttoken
Browse files Browse the repository at this point in the history
Fix SendComment
  • Loading branch information
devblackops authored Jul 1, 2020
2 parents 0d72eca + d4fc302 commit 1913f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ $ghEvent = Get-Content -Path $env:GITHUB_EVENT_PATH | ConvertFrom-Json -Dept
$commentsUrl = $ghEvent.pull_request.comments_url

# Send comment back to PR if any issues were found
if ($commentsUrl -and $env:INPUT_SENDCOMMENT -and ($errors.Count -gt 0 -or $warnings.Count -gt 0 -or $infos.Count -gt 0)) {
if ($commentsUrl -and ($env:INPUT_SENDCOMMENT -eq "$true" -or $env:INPUT_SENDCOMMENT -eq 1) -and $env:INPUT_REPOTOKEN -and ($errors.Count -gt 0 -or $warnings.Count -gt 0 -or $infos.Count -gt 0)) {
$params = @{
Uri = $commentsUrl
Method = 'Post'
Expand Down

0 comments on commit 1913f56

Please sign in to comment.