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

enable automatic publish after dependabot #353

Open
2 tasks
arznaar opened this issue Aug 28, 2021 · 0 comments
Open
2 tasks

enable automatic publish after dependabot #353

arznaar opened this issue Aug 28, 2021 · 0 comments
Assignees

Comments

@arznaar
Copy link
Owner

arznaar commented Aug 28, 2021

I've tried several approaches:

  1. publish on push to develop
    it looks most as the most natural, but push event isn't triggered after dependabot pr was merged if this automerge was set from action
  2. separate action on PR event "closed" that, if status is "merged", triggers publish event
    this way we rely on the fact that we never actually push to develop directly and always merge PRs there. But triggering other action via scripts didn't really work. Nothing in the logs. Looks like it can't find the actor who did this and skipped it. When I've triggered it manually - all worked.
  3. trigger publish of PR "closed" and publish merge commit.
    this one may have some quirks if there are several PRs opened simultaneous, but even this didn't work and never triggered PRs on "merged" status. It triggered once dependabot closed PR as unneeded, but not on merge. Strange
  • try logging all PR events, it's a bit strange that in (2) actions were triggered on "closed", but for (3) they aren't. Is it due to target branch?
  • the worse case would be adding my personal token to trigger action with it for case (2), but let's postpone this
@arznaar arznaar self-assigned this Aug 28, 2021
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

1 participant