Skip to content

Instantly share code, notes, and snippets.

@PaulRBerg
Last active March 8, 2022 18:17
Show Gist options
  • Save PaulRBerg/33ae207dd19d40d6ca35b6b9bec31183 to your computer and use it in GitHub Desktop.
Save PaulRBerg/33ae207dd19d40d6ca35b6b9bec31183 to your computer and use it in GitHub Desktop.
Simple workflow to print a GitHub Secret because GitHub doesn't offer this feature yet
name: "Echo GitHub secret"
on:
push:
branches:
- "main"
jobs:
print-github-secret:
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v2"
- name: "Print the GitHub secret"
run: "echo ${{ secrets.YOUR_SECRET }} | sed 's/./& /g'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment