Skip to content

Commit

Permalink
Updated for additional documentation refinements
Browse files Browse the repository at this point in the history
  • Loading branch information
StevenJDH committed Nov 30, 2024
1 parent 1d10bba commit 44febae
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion MavenVersionChecker.Action/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ outputs:
number_of_updates:
description: 'Holds the number of artifact updates available.'
update_json:
description: 'A map of artifacts with updates in json format. Note: The parents field is maintained as an array so that processing can use the same code.'
description: 'A map of grouped artifacts with updates in json format. Note: The parents field is maintained as an array so that processing can use the same code.'

runs:
using: 'docker'
Expand Down
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Below is a list of GitHub-hosted runners that support jobs using this action.
| [![macOS](https://img.shields.io/badge/macOS-000000?style=flat\&logo=macos\&logoColor=F0F0F0)](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on) | ⚠️ |

> [!NOTE]
> Windows and macOS is supported locally only.
> Windows and macOS is supported [locally](#locally) only.
## Inputs
The following inputs are available:
Expand All @@ -46,7 +46,7 @@ The following outputs are available:
|-------------------------------------------------------------------------|----------|:----------:|----------------------------------------------------------|
| <a name="has_updates"></a>[has_updates](#has_updates) | `string` | true | Indicates whether or not artifact updates are available. |
| <a name="number_of_updates"></a>[number_of_updates](#number_of_updates) | `string` | 5 | Holds the number of artifact updates available. |
| <a name="update_json"></a>[update_json](#update_json) | `json` | {"parents"&#xFEFF;:&#xFEFF;["example:parent:2.0.0"], "dependencies"&#xFEFF;:&#xFEFF;["foo:bar:2.0.0"], "plugins"&#xFEFF;:&#xFEFF;["marco:polo:2.0.0"]} | A map of artifacts with updates in json format. Note: The 'parents' field is maintained as an array so that processing can use the same code. |
| <a name="update_json"></a>[update_json](#update_json) | `json` | {"parents"&#xFEFF;:&#xFEFF;["example:parent:2.0.0"], "dependencies"&#xFEFF;:&#xFEFF;["foo:bar:2.0.0"], "plugins"&#xFEFF;:&#xFEFF;["marco:polo:2.0.0"]} | A map of grouped artifacts with updates in json format. Note: The `parents` field is maintained as an array so that processing can use the same code. |

## Usage
Implementing this action is relatively simple with just a few steps.
Expand Down Expand Up @@ -104,11 +104,12 @@ jobs:
done
```
## Running locally or from another third-party pipeline
Since this action is container-based, it can be ran locally or from another third-party pipeline, for example, Azure Pipelines. First, create a [GitHub PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with at least `read:packages` permissions from [here](https://github.com/settings/tokens/new?scopes=read:packages), and run the following commands from the root directory of a maven project:
## Running locally or from another third-party pipeline<a id='locally'></a>
Since this action is container-based, it can be ran locally or from another third-party pipeline like Azure Pipelines. To get started, create a [GitHub PAT](https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/managing-your-personal-access-tokens) with at least `read:packages` permissions from [here](https://github.com/settings/tokens/new?scopes=read:packages), and run the following commands from the root directory of a maven project:

```bash
echo <YOUR_GITHUB_PAT> | docker login ghcr.io -u <YOUR_GITHUB_USERNAME> --password-stdin
touch summary.txt output.txt
docker run --name maven-version-checker --workdir=/data --rm \
-e INPUT_LOCATION="./pom.xml" \
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ outputs:
number_of_updates:
description: 'Holds the number of artifact updates available.'
update_json:
description: 'A map of artifacts with updates in json format. Note: The parents field is maintained as an array so that processing can use the same code.'
description: 'A map of grouped artifacts with updates in json format. Note: The parents field is maintained as an array so that processing can use the same code.'

runs:
using: 'docker'
Expand Down

0 comments on commit 44febae

Please sign in to comment.