Skip to content

Workflow file for this run

name: Create Schema for latest release
on:
release:
types: [published]
workflow_dispatch:
jobs:
determine_whether_to_run:
runs-on: ubuntu-latest
outputs:
update_schema: ${{ steps.check-update-schema.outputs.run_jobs }}
steps:
- name: Check if event should be sent
id: check-update-schema
run: (echo "${{ github.ref }}" | grep -Eq '^refs\/tags\/[0-9]+\.[0-9]+\.[0-9]+$') && echo "::set-output name=run_jobs::true" || echo "::set-output name=run_jobs::false"
create_schema:
runs-on: ubuntu-latest
needs: determine_whether_to_run
if: needs.determine_whether_to_run.outputs.update_schema == 'true'
name: Create Schema
steps:
- name: Checkout oss Repo
uses: actions/checkout@v3
with:
ref: next
- name: Make clean and build
run: make clean && make
- name: Generate the latest schema
run: ./build/reactivesearch --create-schema
- name: Add and Commit changes
uses: EndBug/add-and-commit@v9
with:
add: schema
default_author: github_actions
message: Update schema for latest release
push: true