Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comment author "github-actions" not recognized as author #171

Closed
samuelT2 opened this issue Apr 26, 2023 · 2 comments
Closed

Comment author "github-actions" not recognized as author #171

samuelT2 opened this issue Apr 26, 2023 · 2 comments

Comments

@samuelT2
Copy link

Hi

Thank you very much for this action - I just started to use it within a workflow. One thing I noticed is that "comment-author" for the author "github-actions" is not working.

My workflow starts like this:

on:
  issues:
    types: [closed]

jobs:
  close-activity:
    runs-on: ubuntu-latest
    steps:
    - name: Find Comment
      uses: peter-evans/find-comment@v2.4.0
      id: fc
      with:
        issue-number: ${{ github.event.issue.number }}
        comment-author: github-actions
        body-includes: Kimai activity created, ID-

My comment looks like this:
image

It works fine when i only use "body-includes" - but when I want to further restrict it to the author "github-actions" it's not working anymore. Any hints or thoughts from your end?

@peter-evans
Copy link
Owner

Hi @samuelT2

Please use comment-author: 'github-actions[bot]'. This is the correct name for the bot user.

@samuelT2
Copy link
Author

That worked, thank you very much.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants