Skip to content

Commit

Permalink
Merge pull request #1984 from ADBond/ci-update-merge-branch
Browse files Browse the repository at this point in the history
CI - update splink4 'to-merge' branch
  • Loading branch information
ADBond authored Feb 21, 2024
2 parents 154dfdd + ea98d72 commit e978948
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/update_splink4_merge_branch.yml
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

0 comments on commit e978948

Please sign in to comment.