Skip to content
This repository has been archived by the owner on Apr 28, 2023. It is now read-only.

Commit

Permalink
issue-533: update version number from tag
Browse files Browse the repository at this point in the history
  • Loading branch information
serjoshua committed Feb 2, 2022
1 parent 565481b commit 1fca148
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ols-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,15 @@ jobs:
- name: Copy build fix
run: mkdir -p ~/.m2/repository && cp -rf build-fix/. ~/.m2/repository/
- name: Run find-and-replace to remove v in tag
# if: github.ref_type == 'tag'
# uses: mad9000/actions-find-and-replace-string@1
# id: versionnumber
# with:
# source: ${{ github.ref_name }}
# find: 'v'
# replace: ''
if: github.ref_name == 'issue-533'
if: github.ref_type == 'tag'
uses: mad9000/actions-find-and-replace-string@1
id: versionnumber
with:
source: ${{ github.ref_name }}
find: 'issue-'
find: 'v'
replace: ''
- name: Update OLS version
if: github.ref_type == 'tag' || github.ref_name == 'issue-533'
if: github.ref_type == 'tag'
run: |
mvn -B release:update-versions -DreleaseVersion=${{ steps.versionnumber.outputs.value }} -DdevelopmentVersion=${{ steps.versionnumber.outputs.value }}-SNAPSHOT
mvn versions:set -DremoveSnapshot -DgenerateBackupPoms=false -DprocessAllModules=true
Expand Down

0 comments on commit 1fca148

Please sign in to comment.