Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
41 lines (37 sloc) 1.05 KB
name: Index Crawler
on:
schedule:
- cron: 0 * * * *
push:
branches:
- master
jobs:
load:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@master
with:
ref: master
- uses: actions/setup-node@master
with:
node-version: 12.x
- run: |
cd crawler
npm install
- name: Configure git
run: |
git config user.email "github-bot@brigade.cloud"
git config user.name "Brigade Bot"
git remote set-url origin https://brigade-bot:${{ secrets.BOT_GITHUB_TOKEN }}@github.com/codeforamerica/brigade-project-index.git
git fetch origin refs/heads/index/v1:refs/heads/index/v1 refs/heads/cfapi/orgs/v1:refs/heads/cfapi/orgs/v1
- run: |
node crawler/run.js \
--all \
--commit-to=index/v1 \
--commit-orgs-to=cfapi/orgs/v1
env:
GITHUB_ACTOR: brigade-bot
GITHUB_TOKEN: ${{ secrets.BOT_GITHUB_TOKEN }}
- name: Push results
run: |
git push origin refs/heads/index/v1 refs/heads/cfapi/orgs/v1
You can’t perform that action at this time.