Skip to content

Commit

Permalink
version increment
Browse files Browse the repository at this point in the history
  • Loading branch information
sharhio committed Nov 13, 2024
1 parent bf4ad4f commit 735c848
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/next_lwa-virtualmonitor-dev-weu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,27 @@ on:
workflow_dispatch:

jobs:
version-increment:
runs-on: ubuntu-latest
if: "!startsWith(github.event.head_commit.message, '[DEPLOY]')"

steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_SECRET }}
- run: git config --global user.name 'Digitransit'
- run: git config --global user.email '[email protected]'
- name: major
run: npm version major -m "[DEPLOY] %s"
if: "contains(github.event.head_commit.message, '[MAJOR]')"
- name: minor
run: npm version minor -m "[DEPLOY] %s"
if: "contains(github.event.head_commit.message, '[MINOR]')"
- name: patch
run: npm version patch -m "[DEPLOY] %s"
if: "!contains(github.event.head_commit.message, '[MAJOR]') && !contains(github.event.head_commit.message, '[MINOR]')"
- run: git push

build:
runs-on: 'ubuntu-latest'

Expand Down

0 comments on commit 735c848

Please sign in to comment.