From 1475780677d156d669962cca1d7b801a0ceb9a8b Mon Sep 17 00:00:00 2001 From: Tim Heuer Date: Tue, 20 Dec 2022 16:17:51 -0800 Subject: [PATCH] Adding note about secrets for reusable [skip ci] --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index b682a68..cccfd3b 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,10 @@ The Action has an output variable named filePath that you can use as this file i with: filelocation: ${{ steps.write_file.outputs.filePath }} ``` + +### Using this in a reusable workflow +As a special note, when using reusable workflows, repository secrets do not naturally 'flow' through to the workflow. So if your `encodedString` value is a repository secret and you expect this to work when this action is used in a reusable workflow, you need to specify the `secrets: inherit` value in that situation and put that where you are reusing this workflow. + ## Building this repo After making modifications to the source index.js file, to properly package the change you need to run