Skip to content

dispatch microserivce maven release #1

dispatch microserivce maven release

dispatch microserivce maven release #1

name: dispatch microserivce maven release
on:
workflow_dispatch:
inputs:
release-version:
required: true
description: release version to build
development-version:
required: true
description: next development version to set
service:
required: true
description: service/directory to build (wls-broadcast-service, ...)
env:
gitTag: ${{ github.event.inputs.service }}/v${{ github.event.inputs.release-version }}
jobs:
run-mvn-release-prepare:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out Git repository
uses: actions/checkout@v4
- name: Setup git user
uses: fregante/setup-git-user@v2
- name: Install Java and Maven
uses: actions/setup-java@v4
with:
java-version: 17
distribution: "temurin"
cache: 'maven'
cache-dependency-path: '${{ github.event.inputs.service }}/pom.xml'
- name: Perform maven release
run: >
mvn -B -ntp release:prepare -f backend/pom.xml
-DreleaseVersion=${{ github.event.inputs.release-version }}
-DdevelopmentVersion=${{ github.event.inputs.development-version }}
-Dtag=${{ env.gitTag }}
-Darguments="-DskipTests -B -ntp"
build-github-release:
permissions:
contents: write
needs:
- run-mvn-release-prepare
uses:
./.github/workflows/callable-create-github-release-from-tag.yml
with:
tag: ${{ env.gitTag }}

Check failure on line 52 in .github/workflows/dispatch-microservice-mvn-release.yml

View workflow run for this annotation

GitHub Actions / dispatch microserivce maven release

Invalid workflow file

The workflow is not valid. .github/workflows/dispatch-microservice-mvn-release.yml (Line: 52, Col: 12): Unrecognized named-value: 'env'. Located at position 1 within expression: env.gitTag .github/workflows/dispatch-microservice-mvn-release.yml (Line: 63, Col: 12): Unrecognized named-value: 'env'. Located at position 1 within expression: env.gitTag
service: ${{ github.event.inputs.service }}
build-github-container-image:
permissions:
packages: write
needs:
- run-mvn-release-prepare
uses:
./.github/workflows/callable-create-github-container-image.yml
with:
tag: ${{ env.gitTag }}
service: ${{ github.event.inputs.service }}