File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -48,21 +48,13 @@ jobs:
4848 echo "has_commits=true" >> $GITHUB_OUTPUT
4949 fi
5050
51- # Use a fixed branch name for the PR
52- - name : Update dev-to-master branch
51+ # Set up git for potential operations
52+ - name : Setup git
5353 if : steps.check-commits.outputs.has_commits == 'true'
5454 run : |
55- # Setup git
5655 git config user.name "GitHub Actions Bot"
5756 git config user.email "[email protected] " 5857
59- # Use a fixed branch name for consistency
60- BRANCH_NAME="automated-dev-to-master-branch"
61-
62- # Force-push current dev state to the fixed branch
63- git checkout -b $BRANCH_NAME
64- git push --force origin $BRANCH_NAME
65-
6658 # Create or update PR using GitHub API with retry logic
6759 - name : Create or Update Pull Request
6860 if : steps.check-commits.outputs.has_commits == 'true'
7163 github-token : ${{ secrets.GITHUB_TOKEN }}
7264 script : |
7365 const { repo, owner } = context.repo;
74- const prBranch = "automated- dev-to-master-branch ";
66+ const prBranch = "dev";
7567 const prTitle = "chore: release automated changes from dev to master";
7668 const prBody = process.env.PR_BODY;
7769
You can’t perform that action at this time.
0 commit comments