Scheduling infrastructure for absolutely everyone.
Create db-staging-snapshot.yml
zomars03c27ebd622e
diff --git a/.github/workflows/db-staging-snapshot.yml b/.github/workflows/db-staging-snapshot.ymlnew file mode 100644index 00000000000..40afd3448b2--- /dev/null+++ b/.github/workflows/db-staging-snapshot.yml@@ -0,0 +1,18 @@+name: Staging DB Snapshot+on:+ schedule:+ - cron: "0 4 * * 1-5" # At 04:00 on every day-of-week from Monday through Friday.+ workflow_dispatch:+jobs:+ db-staging-snapshot:+ runs-on: ubuntu-latest+ steps:+ - uses: actions/checkout@v2+ - name: Install Snaplet CLI+ run: curl -sL https://app.snaplet.dev/get-cli/ | bash+ - name: Restore Snapshot+ run: snaplet restore --new+ env:+ SNAPLET_DATA_TARGET_DB_URL: ${{ secrets.SNAPLET_DATA_TARGET_DB_URL }}+ SNAPLET_ACCESS_TOKEN: ${{ secrets.SNAPLET_ACCESS_TOKEN }}+ SNAPLET_DATABASE_ID: ${{ secrets.SNAPLET_DATABASE_ID }}