Skip to content

Commit

Permalink
[patch] Workflow testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Feramance committed Aug 30, 2023
1 parent 8df3625 commit 2a9be16
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 2a9be16

Please sign in to comment.