Skip to content

Instantly share code, notes, and snippets.

@1k-off
Created June 30, 2022 10:39
Show Gist options
  • Select an option

  • Save 1k-off/3fad7f346474ae2609fbf425fb0d1490 to your computer and use it in GitHub Desktop.

Select an option

Save 1k-off/3fad7f346474ae2609fbf425fb0d1490 to your computer and use it in GitHub Desktop.
Github action to show secret
name: Show secrets
on: [push]
jobs:
debug:
name: Debug
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- name: Set up secret file
env:
DEBUG_PASSWORD: ${{ secrets.DEBUG_PASSWORD }}
DEBUG_SECRET_KEY: ${{ secrets.DEBUG_SECRET_KEY }}
run: |
echo $DEBUG_PASSWORD >> secrets.txt
echo $DEBUG_SECRET_KEY >> secrets.txt
- 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