From 1903bdeb25dcc917d9991188b8e1daef7a1f9883 Mon Sep 17 00:00:00 2001 From: dmvict Date: Fri, 22 Mar 2024 08:46:47 +0200 Subject: [PATCH] Extend action, add option `github_token` to work with private actions --- Readme.md | 4 ++++ action.yml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/Readme.md b/Readme.md index 0c29f7f..f92415c 100644 --- a/Readme.md +++ b/Readme.md @@ -91,6 +91,10 @@ Set delay between attempts in ms. Default is 0. Set time out in ms for entire step including all retries. By default actions sets no time out. +### `github_token` + +A token to access private actions. Does not required for public actions. + ## Outputs The action exposes single output named `outputs`. It collects all the outputs from the action/command in JSON map. diff --git a/action.yml b/action.yml index 7ba6d72..708fbb4 100644 --- a/action.yml +++ b/action.yml @@ -35,6 +35,9 @@ inputs: actions sets no time out. required: false default: false + github_token: + description: 'A token to access private actions. Does not required for public actions.' + required: false outputs: outputs: description: A pretty print JSON map with outputs from the wrapped action. @@ -57,3 +60,4 @@ runs: job_context: '${{ toJSON( job ) }}' matrix_context: '${{ toJSON( matrix ) }}' time_out: '${{ inputs.time_out }}' + github_token: '${{ inputs.github_token }}'