From cf555cf748fff286a40aafafcc12abcae255f856 Mon Sep 17 00:00:00 2001 From: Emilien Escalle Date: Fri, 9 Feb 2024 13:49:07 +0100 Subject: [PATCH] docs: add token input description Signed-off-by: Emilien Escalle --- actions/get-matrix-outputs/README.md | 24 ++++++++++++++++-------- actions/get-matrix-outputs/action.yml | 2 +- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/actions/get-matrix-outputs/README.md b/actions/get-matrix-outputs/README.md index a7db50d..b30d458 100644 --- a/actions/get-matrix-outputs/README.md +++ b/actions/get-matrix-outputs/README.md @@ -1,6 +1,9 @@ + +# GitHub Action: Get Matrix Outputs + @@ -19,25 +22,30 @@ Download matrix ouputs from artifacts, because GitHub action does not handle job # The name of the artifact to download. artifact-name: "" - # Define weather to remove the downloaded artifact after reading. + # Define weather to remove the downloaded artifact after reading. Requires token input. # Default: true remove-artifact: "" + + # GitHub token with read and write access to actions for the repository. + # Default: ${{ github.token }} + token: ${{ secrets.GITHUB_TOKEN }} ``` -| **Input** | **Description** | **Default** | **Required** | -| -------------------------------- | --------------------------------------------------------------- | ----------------- | ------------ | -| **artifact-name** | The name of the artifact to download. | | **true** | -| **remove-artifact** | Define weather to remove the downloaded artifact after reading. | true | **false** | +| **Input** | **Description** | **Default** | **Required** | +| -------------------------------- | ------------------------------------------------------------------------------------- | -------------------------------- | ------------ | +| **artifact-name** | The name of the artifact to download. | | **true** | +| **remove-artifact** | Define weather to remove the downloaded artifact after reading. Requires token input. | true | **false** | +| **token** | GitHub token with read and write access to actions for the repository. | ${{ github.token }} | **false** | -| \***\*Output\*\*** | \***\*Description\*\*** | \***\*Default\*\*** | \***\*Required\*\*** | -| ------------------- | --------------------------------- | ------------------- | -------------------- | -| result | The matrix combined JSON outputs. | undefined | undefined | +| **Output** | **Description** | **Default** | **Required** | +| ------------------- | --------------------------------- | ----------- | ------------ | +| result | The matrix combined JSON outputs. | undefined | undefined | diff --git a/actions/get-matrix-outputs/action.yml b/actions/get-matrix-outputs/action.yml index 939b535..d8dd13a 100644 --- a/actions/get-matrix-outputs/action.yml +++ b/actions/get-matrix-outputs/action.yml @@ -13,7 +13,7 @@ inputs: description: "The name of the artifact to download." required: true remove-artifact: - description: "Define weather to remove the downloaded artifact after reading." + description: "Define weather to remove the downloaded artifact after reading. Requires token input." required: false default: "true" token: