TreTuna/sync-branches

Push event workflow triggers when PR raised by this sync action

Opened this issue · 1 comments

  • We have 2 branches (say dev and master) in the main repository along with developers working on forked repository.
  • We have several workflows that triggers on different events like pull_request (for testing, linting, etc) on master and dev branch, push(when PR is merged) on dev or on tags(for release).
  • All the workflows are running as expected. Like when PR is raised from forked branch to dev, when release is created with the required pattern of tag.
  • We also have a scheduled workflow for sync between dev and master. This workflow uses TreTuna action for syncing master branch with dev on a given schedule.
  • **The action is raising PR properly but all the workflows with push event are triggered instead of those with pull_request. Infact workflow with push on tag is also getting triggered(which is used only for release).
  • Expected behaviour is that only workflows that have trigger on pull_request to master branch should run**.

Also following warning in logs pops up when the TreTuna action runs [just for info]:
(node:1826) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.

Any update on this? Having the same problem