From f0ccf87698df89a57ccd4fe71be0703bc0573e6c Mon Sep 17 00:00:00 2001 From: Rodrigo Mansueli Date: Wed, 26 Mar 2025 12:06:38 -0300 Subject: [PATCH 1/2] chore: Update action versions in CI/CD examples --- docs/backups.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/backups.md b/docs/backups.md index 95d5fc9..fe37512 100644 --- a/docs/backups.md +++ b/docs/backups.md @@ -17,9 +17,9 @@ jobs: build: runs-on: ubuntu-latest env: - supabase_db_url: ${{ secrets.SUPABASE_DB_URL }} # For example: postgresql://postgres:[YOUR-PASSWORD]@db..supabase.co:5432/postgres + supabase_db_url: ${{ secrets.SUPABASE_DB_URL }} # For example: postgresql://postgres.supa-nacho:[YOUR-PASSWORD]@aws-0-eu-west-1.pooler.supabase.com:5432/postgres steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: supabase/setup-cli@v1 with: version: latest @@ -57,10 +57,10 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - env: - supabase_db_url: ${{ secrets.SUPABASE_DB_URL }} # For example: postgresql://postgres:[YOUR-PASSWORD]@db..supabase.co:5432/postgres + env: # For example: postgresql://postgres.supa-nacho:[YOUR-PASSWORD]@aws-0-eu-west-1.pooler.supabase.com:5432/postgres + supabase_db_url: ${{ secrets.SUPABASE_DB_URL }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - uses: supabase/setup-cli@v1 From 6373b5a7930ba52dd1142b3af4c8b07bb9126c1f Mon Sep 17 00:00:00 2001 From: Rodrigo Mansueli Date: Wed, 26 Mar 2025 12:57:56 -0300 Subject: [PATCH 2/2] Update backups.md --- docs/backups.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/backups.md b/docs/backups.md index fe37512..6f3a30f 100644 --- a/docs/backups.md +++ b/docs/backups.md @@ -9,6 +9,11 @@ Inside your repository, create a new file inside the `.github/workflows` folder ## Backup action +!!! note + + You should put the session mode (pooler) or url in a [secret](https://docs.github.com/en/actions/security-for-github-actions/security-guides/using-secrets-in-github-actions) for the Repo. [Not in environment variables](https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/store-information-in-variables). + + ```yaml name: 'backup-database' on: