Skip to content

Commit

Permalink
atualizando dump
Browse files Browse the repository at this point in the history
  • Loading branch information
joellensilva committed Jan 16, 2025
1 parent 04adcca commit b27e6b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/dump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
schedule:
- cron: "0 3 17 * *"
- cron: "0 3 2 * *"
push:
branches:
- "dump-workflow-dispatch"

jobs:
Atualizar-media-por-membro:
Expand All @@ -18,7 +21,7 @@ jobs:
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 * *'
if: github.event.schedule == '0 3 17 * *' || github.event_name == 'push'
runs-on: ubuntu-20.04
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand Down

0 comments on commit b27e6b8

Please sign in to comment.