Skip to content

Commit 97a0556

Browse files
authored
Create copy-secrets-to-lavc-lite.yml
1 parent c5540bf commit 97a0556

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Copy Cloudflare Secrets to Lavc Lite
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
copy-secrets:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Copy CLOUDFLARE_API_TOKEN to target repo
12+
env:
13+
GH_TOKEN: ${{ secrets.TRANSFER_PAT }}
14+
SECRET_VALUE: ${{ secrets.CLOUDFLARE_API_TOKEN }}
15+
run: |
16+
printf "%s" "$SECRET_VALUE" | gh secret set CLOUDFLARE_API_TOKEN \
17+
--repo PkLavc/lavc-systems-lite \
18+
--body-file -
19+
20+
- name: Copy CLOUDFLARE_ACCOUNT_ID to target repo
21+
env:
22+
GH_TOKEN: ${{ secrets.TRANSFER_PAT }}
23+
SECRET_VALUE: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
24+
run: |
25+
printf "%s" "$SECRET_VALUE" | gh secret set CLOUDFLARE_ACCOUNT_ID \
26+
--repo PkLavc/lavc-systems-lite \
27+
--body-file -

0 commit comments

Comments
 (0)