Get CPI weight #155
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: Get CPI weight | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: '01 07 * * 1-5' | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
# This step installs node | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
# Check out the repository so it can read the files inside of it and do other operations | |
- name: Check out repo | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm ci | |
- name: run script | |
run: node run.js | |
- name: Commit and push the results | |
run: | | |
git config --global user.name "github-actions[bot]" | |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add -A | |
git commit -m "GitHub Actions Results added" | |
git push |