diff --git a/docs/backups.md b/docs/backups.md index 95d5fc9..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: @@ -17,9 +22,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 +62,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