Skip to content

GET Open Collective #1430

GET Open Collective

GET Open Collective #1430

name: GET Open Collective
on:
schedule:
# At 1am every night
- cron: '0 1 * * *'
jobs:
get-data:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- run: npm install
- run: npm run get-opencollective
- name: check for changes
run: git status
- name: stage changed files
run: |
git config --local user.name "ocf-bot"
git config --local user.email "info@openclimatefix.org"
git add .
git commit -m "馃梼 Add latest opencollective data"
- name: fetch from main
run: git fetch origin main
- name: push code to main
run: git push origin HEAD:main