Skip to content

Commit

Permalink
Per suggestion from @JohnHalleyGotway, create intermediate branch for…
Browse files Browse the repository at this point in the history
… updating truth data to avoid branch protection rules. I added a step to delete the intermediate branch locally if it exists to prevent conflicts with the update
  • Loading branch information
georgemccabe committed Feb 15, 2024
1 parent 0db92ab commit 525809d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/update_truth.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,14 @@ jobs:
git config --global user.email "[email protected]"
echo git checkout ${branch_name}
git checkout ${branch_name}
echo git checkout -d update_truth_for_${branch_name} (delete local if exists)
git checkout -d update_truth_for_${branch_name}
echo git checkout -b update_truth_for_${branch_name} (create from ${branch_name})
git checkout -b update_truth_for_${branch_name}
echo git merge -s ours origin/${branch_name}-ref
git merge -s ours origin/${branch_name}-ref
echo git push origin ${branch_name}
git push origin ${branch_name}
echo git push origin update_truth_for_${branch_name}
git push origin update_truth_for_${branch_name}
- name: Create Pull Request
run: gh pr create --base $BASE --body "$BODY" --title "$TITLE"
Expand Down

0 comments on commit 525809d

Please sign in to comment.