Skip to content

Commit

Permalink
Merge pull request #3525 from ingef/feature/use-intermediate-branch-t…
Browse files Browse the repository at this point in the history
…o-merge-back-master

Feature/use intermediate branch to merge back master
  • Loading branch information
thoniTUB authored Aug 22, 2024
2 parents 8304a73 + b282271 commit 643bc6e
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .github/workflows/reintegrate-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- master

env:
REINTEGRATE_BRANCH_NAME: reintegrate-main

jobs:
reintegrate-master:
runs-on: ubuntu-latest
Expand All @@ -14,11 +17,23 @@ jobs:
uses: actions/checkout@v2
with:
submodules: true
- name: pull-request
uses: repo-sync/pull-request@v2
with:
destination_branch: "develop"
pr_title: "Reintegrate Master"
pr_reviewer: "thoniTUB,awildturtok"
pr_assignee: "thoniTUB,awildturtok"
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Switch to intermediate branch
run: git checkout -b $REINTEGRATE_BRANCH_NAME
- name: Create pull-request
run: >
gh pr create
-l automated
-a awildturtok,thoniTUB
-r awildturtok,thoniTUB
-B develop
--title "Reintegrate Main"
--head $REINTEGRATE_BRANCH_NAME
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Modify pull request
run: >
gh pr merge
--auto
--delete-branch
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 643bc6e

Please sign in to comment.