levibostian / action-sync-branches

GitHub Action to copy and push commits from one branch to another.
MIT License
0 stars 0 forks source link

Add option to only run action when a push event happens to AHEAD branch #18

Closed levibostian closed 2 years ago

levibostian commented 2 years ago

To avoid the action from running a lot, we can configure the action to only run when the action is triggered by an AHEAD input branch push. This means that the AHEAD branch is, well, ahead of the behind branch.

Make this configurable via input. skipUnlessPush: optional, default true - an idea of naming.

levibostian commented 2 years ago

Removed this feature in https://github.com/levibostian/action-sync-branches/pull/25 as it's unstable.

Going to ignore this feature and use the action in production for a while. See if this feature would still provide value. The action is really fast to run so there isn't that much of a value to skipping.