Skip to content

trigger-search-build #749

trigger-search-build

trigger-search-build #749

Workflow file for this run

name: build_search_indices
on:
push:
repository_dispatch:
types: [trigger-search-build]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
persist-credentials: false
fetch-depth: 0
- name: Setup Node Version
uses: actions/setup-node@v2
with:
node-version: '12'
- name: Created Indices
run: |
npm install
node index.js
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "Add search indices" --allow-empty
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}