This commit is contained in:
acomo 2021-02-20 23:54:43 +01:00
commit ef895ef230
2 changed files with 4 additions and 4 deletions

View File

@ -45,11 +45,11 @@ jobs:
java-version: 11 java-version: 11
- name: Extract GAV - name: Extract GAV
id: extract id: extract
uses: andreacomo/maven-gav-extractor-github-action@v1 uses: andreacomo/maven-gav-extractor@v1
- name: Log GAV - name: Log GAV
run: | run: |
echo ${{ steps.extract.outputs.group-id }} echo ${{ steps.extract.outputs.group-id }}
echo ${{ steps.extract.outputs.artifact-id }} echo ${{ steps.extract.outputs.artifact-id }}
echo ${{ steps.extract.outputs.version }} echo ${{ steps.extract.outputs.version }}
shell: bash shell: bash
``` ```

View File

@ -1,5 +1,5 @@
name: 'Maven GAV Extractor' name: 'Maven GAV Extractor'
description: 'Extract Maven grouoId, artifactId and version from pom.xml' description: 'Extracts Maven groupId, artifactId and version from pom.xml'
branding: branding:
icon: 'bar-chart-2' icon: 'bar-chart-2'
color: 'orange' color: 'orange'
@ -27,4 +27,4 @@ runs:
echo "::set-output name=group-id::$(mvn -f ${{ inputs.pom-location }} org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.groupId -q -DforceStdout)" echo "::set-output name=group-id::$(mvn -f ${{ inputs.pom-location }} org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.groupId -q -DforceStdout)"
echo "::set-output name=artifact-id::$(mvn -f ${{ inputs.pom-location }} org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.artifactId -q -DforceStdout)" echo "::set-output name=artifact-id::$(mvn -f ${{ inputs.pom-location }} org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.artifactId -q -DforceStdout)"
echo "::set-output name=version::$(mvn -f ${{ inputs.pom-location }} org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout)" echo "::set-output name=version::$(mvn -f ${{ inputs.pom-location }} org.apache.maven.plugins:maven-help-plugin:3.2.0:evaluate -Dexpression=project.version -q -DforceStdout)"
shell: bash shell: bash