File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,23 +10,12 @@ jobs:
1010 - name : Checkout code
1111 uses : actions/checkout@v4
1212
13- - name : Create .env file and display values
13+ - name : Create .env file
1414 run : |
15- # Define variables manually, handling potential secret masking
16- $SUPABASE_URL = "${{ vars.SUPABASE_URL }}"
17- if (-not $SUPABASE_URL) { $SUPABASE_URL = "default_url" } # Fallback for debugging
18-
19- $SUPABASE_KEY = "${{ vars.SUPABASE_KEY }}"
20- if (-not $SUPABASE_KEY) { $SUPABASE_KEY = "default_key" } # Fallback for debugging
21-
22- # Write to .env file
23- Add-Content -Path .env -Value "SUPABASE_URL=$SUPABASE_URL"
24- Add-Content -Path .env -Value "SUPABASE_KEY=$SUPABASE_KEY"
25-
26- # Show .env file contents
27- type .env
15+ echo "SUPABASE_URL=${{ vars.SUPABASE_URL }}" > .env
16+ echo "SUPABASE_KEY=${{ secrets.SUPABASE_KEY }}" >> .env
17+ type .env # For debugging, shows the file contents in logs
2818
29- # Uncomment and adjust the remaining steps as needed
3019 # - name: Setup Flutter
3120 # uses: subosito/flutter-action@v2
3221 # with:
5039 # with:
5140 # name: WindowsExecutable
5241 # path: dist/0.1.0/cookethflow-0.1.0-windows-setup.exe
53- # retention-days: 7
42+ # retention-days: 7
You can’t perform that action at this time.
0 commit comments