-
Notifications
You must be signed in to change notification settings - Fork 147
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1984 from ADBond/ci-update-merge-branch
CI - update splink4 'to-merge' branch
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: update_splink4_merge_branch | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update-merge-branch: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: master | ||
fetch-depth: 0 | ||
|
||
- name: Check if branch exists already and create if not | ||
run: | | ||
git fetch | ||
if git ls-remote --exit-code --heads origin merge/splink_3_to_4; then | ||
echo "Branch merge/splink_3_to_4 exists" | ||
else | ||
git switch -c merge/splink_3_to_4 | ||
git push -u origin merge/splink_3_to_4 | ||
fi | ||
- name: Update to-merge branch | ||
run: | | ||
git fetch | ||
git switch merge/splink_3_to_4 | ||
git pull --ff-only | ||
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | ||
git config --global user.name "github-actions[bot]" | ||
git merge origin/master | ||
git push origin merge/splink_3_to_4 |