Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query POM for core version in CI #498

Merged
merged 1 commit into from
Jun 4, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,26 @@ on:
branches: [ main, v1]

jobs:
get-core-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- id: query-pom
# Query POM for core version and save as output parameter
run: |
CORE_VERSION="$(mvn help:evaluate -Dexpression=io.cryostat.core.version -q -DforceStdout)"
echo "::set-output name=core-version::v$CORE_VERSION"
outputs:
core-version: ${{ steps.query-pom.outputs.core-version }}

build-deps:
runs-on: ubuntu-latest
needs: [get-core-version]
steps:
- uses: actions/checkout@v2
with:
repository: cryostatio/cryostat-core
ref: v1.2.3 # FIXME this needs to be synced with pom.xml core version
ref: ${{ needs.get-core-version.outputs.core-version }}
- uses: skjolber/maven-cache-github-action@v1
with:
step: restore
Expand Down