-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (33 loc) · 1.07 KB
/
statistic-schedule.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Statistics Schedule
env:
DB_USER_NAME: ${{ secrets.STATS_DB_USER_NAME }}
DB_PASSWORD: ${{ secrets.STATS_DB_PASSWORD }}
DB_HOST_AND_PORT: ${{ secrets.STATS_DB_HOST_AND_PORT }}
DB_NAME: ${{ secrets.STATS_DB_NAME }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
on:
schedule:
- cron: "0 16 * * *"
push:
branches:
- "statistics/**"
- "dependabot/**"
workflow_dispatch:
jobs:
execute_job:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
job_name: [docker_pull_citus, github_clone_citus, homebrew_citus]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Install package dependencies
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev libssl-dev python3-testresources
- name: Install python requirements
run: python -m pip install -r packaging_automation/requirements.txt
- name: Execute 'Fetch Daily Statistics'
run: packaging_automation/bash/daily-statistics-job.sh
env:
JOB_NAME: "${{ matrix.JOB_NAME }}"