Running a GitHub Action to Rebase the Test Branch with Main
I have a test environment that runs on the test
branch, and I have set up a GitHub Action to keep the test
branch up-to-date whenever it is merged into the main
branch. By default, we use the “squash” merge strategy to keep the main
branch history clean. The script below works, but I would appreciate feedback from more experienced peers: