mirror of
https://github.com/sotam0316/docker-py-revanced.git
synced 2026-04-25 11:58:37 +09:00
63c7aec67e
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3 to 4. - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](https://github.com/actions/upload-artifact/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
34 lines
930 B
YAML
34 lines
930 B
YAML
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@v4
|
|
with:
|
|
name: github_secrets
|
|
path: .env*
|