-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🎣🐼 ↝ Merge pull request #49 from Signal-K/wb3-15-add-voting-mechanism…
…-for-anomaly 🎣🍢🐼 ↝ Voting mechanism functionality programmed in, currently not active > Might be worth keeping `sta-36-45` branch open in #47 until we go through all the branches to confirm parity with current vercel deployment Might do that now #48
- Loading branch information
Showing
366 changed files
with
34,021 additions
and
583 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: SupaStorage-backup | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 8,20 * * *' | ||
|
||
jobs: | ||
backup: | ||
runs-on: ubuntu-latest | ||
env: | ||
SUPABASE_URL: https://qwbufbmxkjfaikoloudl.supabase.co | ||
SUPABASE_SERVICE_ROLE: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InF3YnVmYm14a2pmYWlrb2xvdWRsIiwicm9sZSI6ImFub24iLCJpYXQiOjE2Njk5NDE3NTksImV4cCI6MTk4NTUxNzc1OX0.RNz5bvsVwLvfYpZtUjy0vBPcho53_VS2AIVzT8Fm-lk | ||
permissions: | ||
contents: write | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ gtihub.head_ref }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies and perform backup | ||
run: | | ||
pip install supabase | ||
[[ -d supabase_storage_backup ]] | mkdir supabase_storage_backup | ||
cd supabase_storage_backup | ||
wget https://raw.githubusercontent.com/signal-k/client/main/storage-backup.py | ||
chmod +x storage-backup.py | ||
python storage-backup.py | ||
rm storage-backup.py | ||
shell: bash | ||
|
||
- name: Set current date as env variable | ||
run: echo "NOW=$(date + '%Y -%m-%dT%H:%M:%S')" >> $GITHUB_ENV | ||
- uses: |
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
Oops, something went wrong.