Skip to content

Commit

Permalink
atualizando view materializada - média por membro
Browse files Browse the repository at this point in the history
  • Loading branch information
joellensilva committed Sep 2, 2024
1 parent 618f39b commit e2a46e1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/dump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,20 @@ on:
workflow_dispatch:
schedule:
- cron: "0 3 17 * *"
- cron: "0 3 2 * *"

jobs:
Atualizar-media-por-membro:
runs-on: ubuntu-20.04
name: Atualizando view media_por_membro
steps:
- uses: actions/checkout@v3

- name: Atualizando view
run: PGPASSWORD=${{ secrets.POSTGRES_PASSWORD }} psql -h "${{ secrets.POSTGRES_HOST }}" -U ${{ secrets.POSTGRES_USER }} -d ${{ secrets.POSTGRES_DB }} -c "REFRESH MATERIALIZED VIEW media_por_membro;"

Dump:
if: github.event.schedule == '0 3 17 * *'
runs-on: ubuntu-20.04
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit e2a46e1

Please sign in to comment.