Create a PR and Auto merge before Test deployment with GitHub Actions
We are using dev branch for dev env and main branch for test env. I need to create a auto merge PR from dev to main branch via GitHub actions once the dev environment deployment is completed. So created a job with the below script to use GitHub CLI.
I have created a token in GitHub and I am Enterprise User.
I referred the page [1]:Create pull request with github action