Skip to content

Instantly share code, notes, and snippets.

@alejovdev
Last active March 15, 2024 08:22
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alejovdev/258df5db57c0bc1653fe0142895a826c to your computer and use it in GitHub Desktop.
Save alejovdev/258df5db57c0bc1653fe0142895a826c to your computer and use it in GitHub Desktop.
name: Firestore Backups
on:
workflow_dispatch:
inputs:
name:
description: 'Backup'
default: 'Backup'
required: false
schedule:
- cron: '0 0 1-31/2 * *'
jobs:
backup:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/setup-gcloud@master
with:
service_account_key: ${{ secrets.GCP_SA_KEY }}
- run: gcloud config set project yourappid
- run: gcloud firestore export gs://yourbucket.appspot.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment