Skip to content

NPM Download Metrics #976

NPM Download Metrics

NPM Download Metrics #976

name: NPM Download Metrics
on:
schedule:
- cron: "30 7 * * *" #runs at 07:30 UTC or 13: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/npm_metrics.py