Skip to content
Adam Ormsby edited this page Mar 9, 2024 · 6 revisions

Features

  • Keep a single branch up to date with the latest commits from a branch on a remote repo
  • Include a token to sync commits from a private upstream repo (HTTPS auth only)
  • Custom configuration for git command options throughout the process - checkout, pull, push, log, etc.
  • Custom settings options for git config - user, email, and pull settings - used during the action and reset when the step is complete

Test Mode

Setting the input var test_mode: true enables a set of input tests designed to help with your action setup. The tests will run instead of the action, and they will verify the following things:

  • Does the target_sync_branch exist in the target repo?
  • Does the upstream_sync_repo exist?
  • Does the upstream_sync_branch exist in the upstream repo?
  • Are you authorized to access the upstream repo?
    • If private, does upstream_repo_access_token provide access?
  • Are git user/email/pull configuration successful? And do they correctly reset?

If you have any failed tests, your action input values are likely incorrect or something is missing in your setup. Running test mode before deployment can help avoid several issues. See setup notes for help configuring the action.

Suggestions for more tests are welcome! Please open an issue if you see an error that could be checked in test mode.

Clone this wiki locally