Skip to content

Commit

Permalink
Merge pull request #485 from HSLdevcom/actions-update
Browse files Browse the repository at this point in the history
version increment
  • Loading branch information
sharhio authored Nov 13, 2024
2 parents 5cb6199 + 735c848 commit 0ad77ad
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 0ad77ad

Please sign in to comment.