Skip to content

Commit

Permalink
add manual local indexer updatooor
Browse files Browse the repository at this point in the history
  • Loading branch information
ufkhan97 committed Nov 7, 2024
1 parent 9d1f971 commit d2cb671
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 3 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/update_local_indexer_tables.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Update Local Indexer Tables

on:
schedule:
# Runs every four hours
- cron: '0 */4 * * *'
workflow_dispatch:

jobs:
run-script:
runs-on: ubuntu-latest
env:
DB_HOST: ${{ secrets.DB_HOST }}
DB_PORT: ${{ secrets.DB_Port }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
INDEXER_DB_HOST: ${{ secrets.INDEXER_DB_HOST }}
INDEXER_DB_PORT: ${{ secrets.INDEXER_DB_PORT }}
INDEXER_DB_NAME: ${{ secrets.INDEXER_DB_NAME }}
INDEXER_DB_USER: ${{ secrets.INDEXER_DB_USER }}
INDEXER_DB_PASSWORD: ${{ secrets.INDEXER_DB_PASSWORD }}
DB_FDW_USERS: ${{ secrets.DB_FDW_USERS }}
DUNE_API_KEY: ${{ secrets.DUNE_API_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Update Local Indexer Tables
run: python automations/update_local_indexer_tables.py
timeout-minutes: 55
- name: Update Permissions
run: python automations/create_foreign_data_users.py
timeout-minutes: 55


3 changes: 0 additions & 3 deletions .github/workflows/update_project_groups.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
name: Update Project Groupings

on:
schedule:
# Runs at 5:00 UTC every day
- cron: '0 5 * * *'
workflow_dispatch:

jobs:
Expand Down

0 comments on commit d2cb671

Please sign in to comment.