Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
bischoffz committed Apr 15, 2024
1 parent 2f5f4f9 commit e9fdf58
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
branches-ignore: ["main"]

jobs:
build:
dev-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Util
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
branches: ["main"]

jobs:
build-deploy:
release:
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
11 changes: 10 additions & 1 deletion .github/workflows/release_pr_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
branches: ["main"]

jobs:
build:
release-pr-build:
runs-on: ubuntu-latest
steps:
- name: Checkout Util
Expand All @@ -24,7 +24,16 @@ jobs:
with:
java-version: '17'
distribution: 'temurin'
- name: Get Version
run: |
echo "version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout --file pom.xml)" >> "$GITHUB_ENV"
- name: Version Is Snapshot
if: ${{ endsWith(env.version, 'SNAPSHOT') }}
run: |
echo "Version is a SNAPSHOT version. Update version to proper version."
exit 1
- name: Build Util
run: mvn clean install -Pjavadoc,jacoco --file pom.xml

Expand Down

0 comments on commit e9fdf58

Please sign in to comment.