tgymnich / fork-sync

🔄 Github action to sync your forks
MIT License
386 stars 82 forks source link

With `ignore_fail: true`, in the event that the upstream hasn't advanced, the fork-sync action *still takes 4 minutes* to complete #170

Open maze88 opened 4 months ago

maze88 commented 4 months ago

The sync-fork action is hardcoded to retry 4 times, with a 60 second delay. Although this is useful in certain cases, it is unnecessarily slow in other cases.

Classic example use case

Expected behavior

If the upstream hasn't got new commits, then fail fast - without retries, etc.

Suggested solution approach

Make the action idempotent - before creating the PR, add a check that there even is a diff between the Head and Base references.