Skip to content

chore: Update action versions in CI/CD examples #325

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions docs/backups.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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.<ref>.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
Expand Down Expand Up @@ -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.<ref>.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
Expand Down
Loading