forked from nikhilbadyal/docker-py-revanced
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (31 loc) · 930 Bytes
/
print-secrets.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Print Github Secrets
on:
workflow_dispatch:
inputs:
ALL:
description: "Whether to export all envs. Please be very careful. Make sure to delete the file after downloading"
required: false
type: boolean
default: false
jobs:
create-envfile:
runs-on: ubuntu-latest
steps:
- name: Save all .envs file
if: inputs.ALL
run: |
python -c "import os; file = open('.env_all', 'w'); file.write(os.environ['ALL']); file.close()"
shell: bash
env:
ALL: ${{ toJSON(secrets) }}
- name: Save ENVS
run: |
python -c "import os; file = open('.env', 'w'); file.write(os.environ['ENVS']); file.close()"
shell: bash
env:
ENVS: ${{ secrets.ENVS }}
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: github_secrets
path: .env*