From 594158dd47f4240ca2b94e2bf3964cb72a25a700 Mon Sep 17 00:00:00 2001 From: GG <23409319+Ontokrat@users.noreply.github.com> Date: Wed, 24 Nov 2021 13:48:31 +0100 Subject: [PATCH] Update Readme code example to reflect v1.1 - version number - example for `fileDir` linked to https://github.com/timheuer/base64-to-file/issues/15#issuecomment-910500781 --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 105a1c3..c6dfdcb 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,10 @@ Use this action if you need to get a file from a base64-encoded string that you ``` - name: Run Workflow id: write_file - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.1 with: fileName: 'myTemporaryFile.txt' + fileDir: './main/folder/subfolder/' encodedString: ${{ secrets.SOME_ENCODED_STRING }} ``` By default this writes the `fileName` to a temporary path defined by `env.RUNNER_TEMP`. If you want a different path that is writable, specify `fileDir` as an input argument as well and then `fileDir` and `fileName` will be combined to create the path where the output will be written. This assumes permissions in the `fileDir` are correct and does not try to set them. @@ -22,7 +23,7 @@ The Action has an output variable named filePath that you can use as this file i ``` - name: Run Workflow id: write_file - uses: timheuer/base64-to-file@v1 + uses: timheuer/base64-to-file@v1.1 with: fileName: 'myTemporaryFile.txt' encodedString: ${{ secrets.SOME_ENCODED_STRING }} @@ -61,4 +62,4 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d -This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome! \ No newline at end of file +This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!