No description
Find a file
2020-10-15 13:57:18 -07:00
.github/workflows Moving to fs-extra 2020-10-15 13:54:18 -07:00
dist Moving to fs-extra 2020-10-15 13:54:18 -07:00
.all-contributorsrc docs: update .all-contributorsrc [skip ci] 2020-01-21 15:42:24 +00:00
.eslintrc.json Initial commit 2019-12-14 13:10:21 -08:00
.gitignore Initial commit 2019-12-14 13:10:21 -08:00
action.yml Initial attempt 2019-12-14 13:30:28 -08:00
index.js Moving to fs-extra 2020-10-15 13:54:18 -07:00
LICENSE Initial commit 2019-12-14 13:10:21 -08:00
package-lock.json Moving to fs-extra 2020-10-15 13:54:18 -07:00
package.json Moving to fs-extra 2020-10-15 13:54:18 -07:00
README.md updating readme 2020-10-15 13:57:18 -07:00

Base64 to File

All Contributors

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.

Usage

- name: Run Workflow
  id: write_file
  uses: timheuer/base64-to-file@v1
  with:
    fileName: 'myTemporaryFile.txt'
    encodedString: ${{ secrets.SOME_ENCODED_STRING }}

Using the file in a later step

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/base64-to-file@v1
  with:
    fileName: 'myTemporaryFile.txt'
    encodedString: ${{ secrets.SOME_ENCODED_STRING }}

- name: Some other step
  uses: actions/someaction@master
  with:
      filelocation: ${{ steps.write_file.outputs.filePath }}

Building this repo

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

Contributors

Thanks goes to these wonderful people (emoji key):


Tim Heuer

💻 📖

Michał Filipek

📖

This project follows the all-contributors specification. Contributions of any kind welcome!