From e2a46e1199576a6185d47b134edebaa303ebe771 Mon Sep 17 00:00:00 2001 From: Joellensilva Date: Mon, 2 Sep 2024 15:13:34 -0300 Subject: [PATCH] =?UTF-8?q?atualizando=20view=20materializada=20-=20m?= =?UTF-8?q?=C3=A9dia=20por=20membro?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dump.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/dump.yaml b/.github/workflows/dump.yaml index 9dcc035..4b85b0b 100644 --- a/.github/workflows/dump.yaml +++ b/.github/workflows/dump.yaml @@ -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 }}