File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -32,11 +32,25 @@ jobs:
3232 - name : Create backup directory
3333 run : mkdir -p supabase_snapshot
3434
35+ - name : Verify SUPABASE_DB_URL is set
36+ env :
37+ SUPABASE_DB_URL : ${{ secrets.SUPABASE_DB_URL }}
38+ run : |
39+ if [ -z "$SUPABASE_DB_URL" ]; then
40+ echo "❌ ERROR: SUPABASE_DB_URL is not set!"
41+ echo "Please add SUPABASE_DB_URL to your repository secrets."
42+ exit 1
43+ else
44+ echo "✅ SUPABASE_DB_URL is set (length: ${#SUPABASE_DB_URL} characters)"
45+ fi
46+
3547 - name : Run backup script
3648 env :
3749 SUPABASE_DB_URL : ${{ secrets.SUPABASE_DB_URL }}
3850 run : |
3951 chmod +x backup.sh
52+ # Explicitly export the environment variable
53+ export SUPABASE_DB_URL="${SUPABASE_DB_URL}"
4054 ./backup.sh
4155
4256 - name : List backup files
You can’t perform that action at this time.
0 commit comments