You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
base64-to-file
v1.0.3
Use this action if you need to get a file from a base64-encoded string that you may be storing in Secrets or elsewhere. This can be useful for certificate signing and storing the base64 cert in the Secrets.
- name: Run Workflow
id: write_file
uses: timheuer/[email protected]
with:
fileName: 'myTemporaryFile.txt'
encodedString: ${{ secrets.SOME_ENCODED_STRING }}
The Action has an output variable named filePath that you can use as this file is written to TEMP. Make sure you ad an id
to your step when using this Action so that you can easily pull it out of the steps context later.
- name: Run Workflow
id: write_file
uses: timheuer/[email protected]
with:
fileName: 'myTemporaryFile.txt'
encodedString: ${{ secrets.SOME_ENCODED_STRING }}
- name: Some other step
uses: actions/someaction@master
with:
filelocation: ${{ steps.write_file.outputs.filePath }}
After making modifications to the source index.js file, to properly package the change you need to run
npm run package
which will modify/create the /dist folder with the final index.js output
Thanks goes to these wonderful people (emoji key):
Tim Heuer 💻 📖 |
Michał Filipek 📖 |
This project follows the all-contributors specification. Contributions of any kind welcome!