GitHub Download Metrics #628
This file contains 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: GitHub Download Metrics | |
on: | |
schedule: | |
- cron: "30 3 * * *" #runs at 03:30 UTC or 09:00 IST everyday | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout cli repo | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Execute py script | |
env: | |
DD_SITE: datadoghq.com | |
DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} | |
run: | | |
pip3 install datadog-api-client | |
pip3 install requests | |
pip3 install datetime | |
python3 .github/scripts/metrics/github_metrics.py |