-
Notifications
You must be signed in to change notification settings - Fork 28
43 lines (35 loc) · 1.16 KB
/
create-schema.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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