mirror of
https://github.com/andreacomo/maven-gav-extractor.git
synced 2025-06-05 02:07:55 +08:00
Merge branch 'main' of https://github.com/andreacomo/maven-gav-extractor-github-action into main
This commit is contained in:
commit
ef895ef230
@ -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
|
||||||
```
|
```
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user