Skip to content

ci(maven): fix snapshot publishing job (#394) #90

ci(maven): fix snapshot publishing job (#394)

ci(maven): fix snapshot publishing job (#394) #90

Workflow file for this run

name: CI build and push
on:
push:
branches:
- main
- v[0-9]+
- v[0-9]+.[0-9]+
- cryostat-v[0-9]+.[0-9]+
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- run: mvn -B -U clean verify
get-version:
runs-on: ubuntu-latest
outputs:
project-version: ${{ steps.get-version.outputs.project-version }}
steps:
- id: get-version
run: |
PROJECT_VERSION="$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)"
echo "project-version=${PROJECT_VERSION}" >> "${GITHUB_OUTPUT}"
publish-snapshot:
needs: get-version
uses: ./.github/workflows/maven-central-publish.yml

Check failure on line 32 in .github/workflows/push-ci.yml

View workflow run for this annotation

GitHub Actions / CI build and push

Invalid workflow file

The workflow is not valid. In .github/workflows/push-ci.yml (Line: 32, Col: 11): Error from called workflow cryostatio/cryostat-core/.github/workflows/maven-central-publish.yml@e4deba885274fbb518c3b6ddc195b88c069d5894 (Line: 8, Col: 9): Required property is missing: type
secrets: inherit
with:
publish-cmd: './mvnw -Prelease deploy jreleaser:deploy'
if: ${{ github.repository_owner == 'cryostatio' && endsWith(needs.get-version.outputs.project-version, '-SNAPSHOT') }}