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

github actor is not dependabot when rerunning the job #498

Open
GersonTf opened this issue Mar 4, 2024 · 1 comment
Open

github actor is not dependabot when rerunning the job #498

GersonTf opened this issue Mar 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@GersonTf
Copy link

GersonTf commented Mar 4, 2024

I have an automerge workflow that checks the PR author:
if: ${{ github.event.workflow_run.conclusion == 'success' && github.actor == 'dependabot[bot]' }}
and gets triggered after the tests workflow:

name: Automerge Dependabot PRs
on:
  workflow_run:
    workflows: ["test"]
    types:
      - completed

The problem is that, sometimes, if the tests fail, the dependabot automerge doesn't get triggered (as expected) and the PR stays open. When I fix the test issue, I re-run the jobs and the dependabot one doesn't get triggered anymore saying that the author is not dependabot when it is.

EDIT: in a second check, I don't think it works either if the tests are success. I think the problem is linked with the workflow_run trigger not having dependabot as an actor even tho dependabot created the PR.

@GersonTf
Copy link
Author

GersonTf commented Mar 4, 2024

this is probably linked to #490

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant