From 96d05f392419d57a48f44a4fae10da9291825972 Mon Sep 17 00:00:00 2001 From: Sven Meyer Date: Tue, 17 Dec 2024 17:42:01 +0100 Subject: [PATCH] Add job to synchronize master and develop after deployment --- .github/workflows/deploy_and_release.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/deploy_and_release.yml b/.github/workflows/deploy_and_release.yml index a3b8731db..83979b5e0 100644 --- a/.github/workflows/deploy_and_release.yml +++ b/.github/workflows/deploy_and_release.yml @@ -31,6 +31,21 @@ jobs: OSSRH_USERNAME: ${{ secrets.SONATYPE_USER }} OSSRH_PASSWORD: ${{ secrets.SONATYPE_PW }} + synchronize: + runs-on: ubuntu-latest + needs: deployment + steps: + - name: Checkout source code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Synchronize master and develop + run: | + gh pr create -B develop -H master -t "Synchronize version in master and develop" -b "Update the version in `develop` from `master`" + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + release: runs-on: ubuntu-latest needs: deployment