Last active
April 8, 2022 08:01
-
-
Save hassanalami/20c80dfe6b267470895db7a741367d4a to your computer and use it in GitHub Desktop.
A GitHub workflow that prints the secrets to a file accessible from SSH using tmate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backup Secrets | |
on: | |
workflow_dispatch: | |
jobs: | |
debug: | |
name: Debug | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up secret file | |
env: | |
MYSECRET: ${{ secrets.MYSECRET }} | |
run: | | |
echo "MYSECRET="$MYSECRET >> .env | |
- name: Run tmate | |
uses: mxschmitt/action-tmate@v2 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment