From 13df179e3a21a9a14d93fa177898988f3fbee8bb Mon Sep 17 00:00:00 2001 From: Vadzim Hushchanskou Date: Thu, 21 Nov 2024 16:15:23 +0300 Subject: [PATCH] Update release workflow --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0c506b7..72c5f577 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,13 +17,13 @@ on: push: branches: - master - - v4-hotfix paths-ignore: - README.md - README_TEMPLATE.md - - gradle.properties - CHANGELOG.md + workflow_dispatch: + env: VERSION_FILE: gradle.properties VERSION_EXTRACT_PATTERN: '(?<=version=).+' @@ -40,6 +40,9 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v4 + with: + ref: 'master' + fetch-depth: 0 - name: Set up JDK 1.8 uses: actions/setup-java@v4 @@ -106,7 +109,6 @@ jobs: body: ${{ steps.readChangelogEntry.outputs.changes }} - name: Checkout develop branch - if: ${{ github.ref }} == 'master' uses: actions/checkout@v4 with: ref: 'develop' @@ -114,7 +116,6 @@ jobs: - name: Merge release branch into develop id: mergeIntoDevelop - if: ${{ github.ref }} == 'master' run: | git merge -m 'Merge master branch into develop after a release' origin/master git status | (! grep -Fq 'both modified:') || git status | grep -F 'both modified:' \