Skip to content
This repository has been archived by the owner on Jul 30, 2023. It is now read-only.

Commit

Permalink
Update migration
Browse files Browse the repository at this point in the history
  • Loading branch information
navi1995 committed Jul 24, 2023
1 parent 9035082 commit 4a05cea
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions .github/workflows/migrate_secrets.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
on: workflow_dispatch
jobs:
create-envfile:
runs-on: ubuntu-latest
steps:
- name: Make envfile
uses: SpicyPizza/create-envfile@v1.3
with:
envkey_SECRETS: ${{ toJSON(secrets) }}
file_name: .env
fail_on_empty: false
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: cats
path: .
create-envfile:
runs-on: ubuntu-latest

steps:
- name: Create Text File
run: |
for secret_name in $(env | grep -oP '^SECRET_\K.*'); do
secret_value=${!secret_name}
echo "$secret_name=$secret_value" >> my-secrets.txt
done
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: secrets-file
path: my-secrets.txt

0 comments on commit 4a05cea

Please sign in to comment.