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 f5b2a8c commit 4efa2d0
Show file tree
Hide file tree
Showing 3 changed files with 13 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 GCM
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:
create-release:
release:
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
12 changes: 11 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 GCM
Expand All @@ -25,6 +25,16 @@ jobs:
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 "::error Version is a SNAPSHOT. Update version to proper version."
exit 1
- name: Build GCM
run: mvn clean install -Prelease --file pom.xml

Expand Down

0 comments on commit 4efa2d0

Please sign in to comment.