Files
docker-py-revanced/.github/workflows/print-secrets.yml
T
dependabot[bot] 6190b428af Bump actions/upload-artifact from 4.6.0 to 4.6.1
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.6.0 to 4.6.1.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4.6.0...v4.6.1)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-02-24 16:17:32 +05:30

48 lines
1.3 KiB
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: Checkout code
uses: actions/checkout@v4
- name: Save All Environment Variables to envs_all.env (If Enabled)
if: inputs.ALL
run: |
python -c "import os; file = open('envs_all.env', 'w'); \
file.write(os.getenv('ALL', '')); file.close()"
shell: bash
env:
ALL: ${{ toJSON(secrets) }}
- name: Save ENVS Secret to envs.env
run: |
python -c "import os; file = open('envs.env', 'w'); \
file.write(os.getenv('ENVS', '')); file.close()"
shell: bash
env:
ENVS: ${{ secrets.ENVS }}
- name: Verify Created envs Files
run: |
echo "Checking if envs.env exist..."
ls -lha envs.env*
- name: Upload Environment Files as Artifact
uses: actions/upload-artifact@v4.6.1
with:
name: github_secrets
path: envs*
if-no-files-found: error