Last active
March 15, 2024 08:22
-
-
Save alejovdev/258df5db57c0bc1653fe0142895a826c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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