Readme refactoring

This commit is contained in:
acomo 2021-02-20 23:26:13 +01:00
parent 739e5d447f
commit 622360717d

View File

@ -1,12 +1,12 @@
# Maven GAV (groupId, artifactId, version) Extractor *GitHub Action* # Maven GAV Extractor *GitHub Action*
This action extracts from `pom.xml` GAV info, i.e.: This action extracts GAV from `pom.xml`, i.e.:
* `groupId` * `groupId`
* `artifactId` * `artifactId`
* `version` * `version`
Why should I need this? For example, to **name** and **tag** a Docker image built upon your artifact Why should I need this? For example, to **name** and **tag** a Docker image built upon your artifact or **pass as parameters** to a dispatched workflow.
## Prerequirements ## Prerequirements
@ -14,27 +14,21 @@ This action expects you to have `maven` available in your workflow environment
## Inputs ## Inputs
### `pom-location` | Name | Description | Default | Required |
| --- | --- | --- |
**Required** Full path to your project `pom.xml` file. Default value is POM in your project root: `${{ github.workspace }}/pom.xml` | `pom-location` | Full path to your project `pom.xml` file | `${{ github.workspace }}/pom.xml` | `true` |
## Outputs ## Outputs
### `group-id` | Name | Description |
| --- | --- | --- |
Group Id of your project | `group-id` | Group Id of your project |
| `artifact-id` | Artifact Id of your project |
### `artifact-id` | `version` | Version of your project |
Artifact Id of your project
### `version`
Version of your project
## Example usage ## Example usage
``` ```yml
name: Sample workflow name: Sample workflow
on: [push] on: [push]