mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 03:48:37 +09:00
Merge pull request #311 from nikhilbadyal/chore/envs
👷 Updated print-secrets.yml
This commit is contained in:
@@ -1,18 +1,34 @@
|
|||||||
name: Print Github Secrets
|
name: Print Github Secrets
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
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:
|
jobs:
|
||||||
create-envfile:
|
create-envfile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Make envfile
|
- name: Save all .envs file
|
||||||
uses: SpicyPizza/create-envfile@main
|
if: inputs.ALL
|
||||||
with:
|
run: |
|
||||||
envkey_SECRETS: ${{ toJSON(secrets) }}
|
python -c "import os; file = open('.env_all', 'w'); file.write(os.environ['ALL']); file.close()"
|
||||||
file_name: .github_secrets
|
shell: bash
|
||||||
fail_on_empty: false
|
env:
|
||||||
|
ALL: ${{ toJSON(secrets) }}
|
||||||
|
|
||||||
|
- name: Save ENVS
|
||||||
|
if: inputs.ALL
|
||||||
|
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
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: github_secrets
|
name: github_secrets
|
||||||
path: .github_secrets
|
path: .env*
|
||||||
|
|||||||
Reference in New Issue
Block a user