Create db-staging-snapshot.yml
parent
db2886d0d4
commit
03c27ebd62
|
@ -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 }}
|
Loading…
Reference in New Issue