Skip to content

Commit

Permalink
Updated Build WF & Release WF
Browse files Browse the repository at this point in the history
  • Loading branch information
OmOmofonmwan committed Feb 14, 2025
1 parent 12c8c26 commit b413a14
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ jobs:

general-build-job:
name: General Build
uses: ikmdev/maven-jpms-test-build-action/.github/workflows/build.yaml@main
uses: ikmdev/maven-jpms-test-build-action/.github/workflows/build.yaml@v1.0.0


1 change: 0 additions & 1 deletion .github/workflows/post_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ jobs:
sonarcloud_token: ${{ secrets.SONAR_TOKEN }}
sonarcloud_sources: ${{ '' }}
sonarcloud_tests: ${{ '' }}

22 changes: 9 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,17 @@ jobs:

- name: Verify Version
run: |
CURRENT_VERSION=$(./mvnw help:evaluate -D'expression=project.version' -q -D'forceStdout')
CORE_VERSION=$(./mvnw help:evaluate -D'expression=roaringbitmap.version' -q -D'forceStdout')
if [[ "$CURRENT_VERSION" != *"$CORE_VERSION"* ]]; then
echo "::error::Current Version Does Not Match Core Version"
echo "::error::Current Version: $CURRENT_VERSION"
echo "::error::Core Version: $CORE_VERSION"
exit 1
fi
- name: Fail Anyway
run: exit 1

CURRENT_VERSION=$(./mvnw help:evaluate -D'expression=project.version' -q -D'forceStdout')
CORE_VERSION=$(./mvnw help:evaluate -D'expression=core.artifact.version' -q -D'forceStdout')
if [[ "$CURRENT_VERSION" != *"$CORE_VERSION"* ]]; then
echo "::error::Current Version Does Not Match Core Version"
echo "::error::Current Version: $CURRENT_VERSION"
echo "::error::Core Version: $CORE_VERSION"
exit 1
fi
- name: Shared Release Action
uses: ikmdev/maven-semver-release-action@v2
with:
version_type: 'pre-release'
github_token: ${{secrets.GITHUB_TOKEN}}
github_token: ${{secrets.GITHUB_TOKEN}}

0 comments on commit b413a14

Please sign in to comment.