NPM Download Metrics #1026
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: 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 |