Update Cardano Dashboard Data #205
This file contains hidden or 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
| name: Update Cardano Dashboard Data | |
| on: | |
| schedule: | |
| - cron: '5 0 * * *' # Run at 5 minutes past midnight UTC every day | |
| workflow_dispatch: # Allow manual triggering | |
| jobs: | |
| update-data: | |
| if: github.repository == 'MeshJS/governance' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: '18' | |
| - name: Install dependencies | |
| run: | | |
| cd apps/cardano-dashboard | |
| npm install | |
| - name: Update Network Totals | |
| continue-on-error: true | |
| env: | |
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} | |
| SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} | |
| KOIOS_API_KEY: ${{ secrets.KOIOS_API_KEY }} | |
| run: | | |
| cd apps/cardano-dashboard | |
| npx ts-node scripts/update-network-totals.ts | |
| - name: Update Governance Proposals | |
| continue-on-error: true | |
| env: | |
| NEXT_PUBLIC_SUPABASE_URL: ${{ secrets.NEXT_PUBLIC_SUPABASE_URL }} | |
| SUPABASE_SERVICE_ROLE_KEY: ${{ secrets.SUPABASE_SERVICE_ROLE_KEY }} | |
| KOIOS_API_KEY: ${{ secrets.KOIOS_API_KEY }} | |
| run: | | |
| cd apps/cardano-dashboard | |
| npx ts-node scripts/update-governance-proposals.ts |