forked from henryjameslau/automatic-cpi-weights
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 914 Bytes
/
main.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
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