Write a secret to a local file during a workflow.
Required The secret to write to a file.
Required Indicates whether to base64 decode the secret value. Default true
.
The file the secret was written to.
steps:
- name: GPG Key Secret File
uses: ttd2089/[email protected]
id: gpg-key-secret
with:
secret: ${{ secrets.GPG_KEY }}
b64-decode: true
- name: Import GPG Key
env:
GPG_KEY_FILE: ${{ steps.gpg-key-secret.outputs.file }}
run: gpg --batch --import $GPG_KEY_FILE