Skip to content

People search updates #17734

People search updates

People search updates #17734

Workflow file for this run

name: People search updates
on:
schedule:
- cron: '12 */2 * * *'
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: 14.x
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install dependencies
run: yarn install --frozen-lockfile
env:
CI: true
- run: yarn run download-form-responses && yarn run build-index
- name: Commit any updates or additions
run: |-
git config user.name "Automated"
git config user.email "[email protected]"
git add assets/images
timestamp=$(date -u)
git commit -a -m "Latest data: ${timestamp}" || exit 0
git push