Skip to content

Commit

Permalink
Add automerge.yml fix #657
Browse files Browse the repository at this point in the history
  • Loading branch information
ManuelJNunez committed Feb 21, 2024
1 parent fa68203 commit 442bc3b
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/automerge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Automerge

on:
workflow_dispatch:
schedule:
- cron: '0 0/12 * * *'

env:
REPO: https://rticommunity:${{secrets.GITHUB_TOKEN}}@github.com/rticommunity/rticonnextdds-examples.git

DESTINATION_BRANCH: develop

MASTER_REPO: https://github.com/rticommunity/rticonnextdds-examples.git

MERGE_BRANCH: release/7.3.0

jobs:
merge:
runs-on: ubuntu-latest

steps:
- name: Merge with master
run: |
git clone ${{env.REPO}} -b ${{env.DESTINATION_BRANCH}} tmp
cd tmp
git config user.name "Automerge Bot"
git config user.email "[email protected]"
git config pull.rebase false
git pull ${{env.MASTER_REPO}} ${{env.MERGE_BRANCH}}
git push

0 comments on commit 442bc3b

Please sign in to comment.