Skip to content

Commit

Permalink
Cleaned up pom
Browse files Browse the repository at this point in the history
  • Loading branch information
OmOmofonmwan committed Feb 14, 2025
2 parents 8466216 + ccd2a16 commit eab884d
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/post_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
repository: ${{github.event.workflow_run.head_repository.full_name}}
ref: ${{github.event.workflow_run.head_branch}}
fetch-depth: 0
- run: exit 1

- name: IKMDEV Post Build Action
id: ikmdev_post_build
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
with:
token: ${{secrets.IKMDEVOPS_PAT_TOKEN}}


- name: Verify Version
run: |
CURRENT_VERSION=$(./mvnw help:evaluate -D'expression=project.version' -q -D'forceStdout')
Expand All @@ -38,8 +39,20 @@ jobs:
exit 1
fi
- name: Extrapolate IKM Release Property
id: newDevVersion
run: |
CORE_VERSION=$(./mvnw help:evaluate -D'expression=core.artifact.version' -q -D'forceStdout')
RC_VERSION=$(./mvnw help:evaluate -D'expression=core.artifact.release' -q -D'forceStdout')
RC_NUMBER=$(echo "$RC_VERSION" | grep -o -E '[0-9]+')
NEW_RC_NUMBER=$((1 + $RC_NUMBER))
echo "DEV_VERSION=$CORE_VERSION-r$NEW_RC_NUMBER-SNAPSHOT" >> $GITHUB_OUTPUT
- name: Shared Release Action
uses: ikmdev/maven-semver-release-action@v2
uses: ikmdev/maven-semver-release-action@main
with:
version_type: 'pre-release'
github_token: ${{secrets.GITHUB_TOKEN}}
github_token: ${{secrets.GITHUB_TOKEN}}
development_version: ${{steps.newDevVersion.outputs.DEV_VERSION}}


0 comments on commit eab884d

Please sign in to comment.