Skip to content

Commit 2d5df80

Browse files
committed
test array secret
1 parent b3c68b5 commit 2d5df80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,8 @@ jobs:
3535
- name: Set environment dynamically
3636
id: set-env
3737
run: |
38-
# Convert subfolder name to uppercase to match the secret naming convention
39-
DYNAMIC_ENV_NAME="ENV_${{ matrix.folder }}"
4038
# Export the secret's value
41-
echo "EXTRA_ENV=--env ${{ secrets[DYNAMIC_ENV_NAME] }}" >> $GITHUB_ENV
39+
echo "EXTRA_ENV=--env ${{ fromJSON(secrets.ENV_VARS)[matrix.folder] }}" >> $GITHUB_ENV
4240
- name: Deploy to ReflexCloud
4341
env:
4442
REFLEX_AUTH_TOKEN: ${{ secrets.REFLEX_AUTH_TOKEN }}

0 commit comments

Comments
 (0)