Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
grebois committed May 20, 2024
1 parent 7c624db commit 76c97b4
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 42 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/deploy-graphql-http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ on:
- development
paths:
- 'cmd/graphql.ethereum/**'
pull_request:
branches:
- development
paths:
- 'cmd/graphql.ethereum/**'

jobs:
deploy:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/frontend-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ on:
pull_request:
branches:
- development

jobs:
frontend-tests:
name: Run Frontend Tests
runs-on: ubuntu-latest
# if: |
# contains(github.event.pull_request.changed_files, 'web/')
if: |
contains(github.event.pull_request.changed_files, 'web/')
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sqlfluff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
sqlfluff:
name: sqlfluff
runs-on: ubuntu-latest
# if: |
# contains(github.event.pull_request.changed_files, 'db/migrations/')
if: |
contains(github.event.pull_request.changed_files, 'db/migrations/')
steps:
- uses: actions/checkout@v2
- uses: yu-iskw/[email protected]
Expand Down
33 changes: 0 additions & 33 deletions .github/workflows/timescale.yml

This file was deleted.

15 changes: 15 additions & 0 deletions db/update_and_migrate.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

# Navigate to the specified directory
cd /home/ec2-user/amm.superposition.so/db/migrations || exit

# Perform a git pull
git_output=$(git pull)

# Check if there are changes
if [[ $git_output != "Already up to date." ]]; then
echo "Changes detected, running dbmate..."
dbmate -u "$SPN_TIMESCALE" -d . up
else
echo "No changes detected."
fi

0 comments on commit 76c97b4

Please sign in to comment.