From 2a9be16288aeeb9152c93d61b04f0f93f0048b36 Mon Sep 17 00:00:00 2001 From: Feramance Date: Wed, 30 Aug 2023 10:25:33 +0200 Subject: [PATCH] [patch] Workflow testing --- .github/workflows/pre-release.yml | 4 ++-- .github/workflows/release.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index 63cd6a5e..d5e15ce8 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -37,9 +37,9 @@ jobs: name: Bump build version needs: [get_current_version] runs-on: ubuntu-latest - if: ${{ startsWith(github.event.head_commit.message, '[build]') || startsWith(github.event.head_commit.message, '[release]') && !contains(github.job.get_current_version.current_version.outputs.VERSION, 'beta' ) }} + if: ${{ startsWith(github.event.head_commit.message, '[patch]') && 'patch' || startsWith(github.event.head_commit.message, '[minor]') && 'minor' || startsWith(github.event.head_commit.message, '[major]') && 'major' || startsWith(github.event.head_commit.message, '[build]') || (startsWith(github.event.head_commit.message, '[release]') && !contains(github.job.get_current_version.current_version.outputs.VERSION, 'beta' )) }} env: - RELEASE_TYPE: ${{ startsWith(github.event.head_commit.message, '[build]') && 'build' || startsWith(github.event.head_commit.message, '[release]') && 'release' }} + RELEASE_TYPE: ${{ startsWith(github.event.head_commit.message, '[patch]') && 'patch' || startsWith(github.event.head_commit.message, '[minor]') && 'minor' || startsWith(github.event.head_commit.message, '[major]') && 'major' || startsWith(github.event.head_commit.message, '[build]') && 'build' || startsWith(github.event.head_commit.message, '[release]') && 'release' }} steps: - uses: actions/checkout@v3 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 57619950..07797341 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,9 +37,9 @@ jobs: name: Bump release version needs: [get_current_version] runs-on: ubuntu-latest - if: ${{ startsWith(github.event.head_commit.message, '[patch]') || startsWith(github.event.head_commit.message, '[minor]') || startsWith(github.event.head_commit.message, '[major]') || ( startsWith(github.event.head_commit.message, '[release]') && contains(github.job.get_current_version.current_version.outputs.VERSION, 'beta' ) ) }} + if: ${{ startsWith(github.event.head_commit.message, '[release]') && contains(github.job.get_current_version.current_version.outputs.VERSION, 'beta' ) }} env: - RELEASE_TYPE: ${{ startsWith(github.event.head_commit.message, '[patch]') && 'patch' || startsWith(github.event.head_commit.message, '[minor]') && 'minor' || startsWith(github.event.head_commit.message, '[major]') && 'major' || startsWith(github.event.head_commit.message, '[release]') && 'release' }} + RELEASE_TYPE: ${{ startsWith(github.event.head_commit.message, '[release]') && 'release' }} steps: - uses: actions/checkout@v3 with: