Fixed typo + added step names

This commit is contained in:
acomo 2021-02-20 22:11:47 +01:00
parent 05ba22be30
commit 32ed04b6d3
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,8 @@ jobs:
uses: ./
with:
pom-location: ${{ github.workspace }}/.github/test-resources/pom.xml
- run: |
- name: Echo GAV
run: |
echo "GroupId: ${{ steps.extract.outputs.group-id }}"
echo "ArtifactId: ${{ steps.extract.outputs.artifact-id }}"
echo "Version: ${{ steps.extract.outputs.version }}"

View File

@ -18,7 +18,8 @@ outputs:
runs:
using: 'composite'
steps:
- id: revaluate
- id: evaluate
name: Extract GAV
run: |
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)"