-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.02 KB
/
cms-search.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: CMS search answers
on:
workflow_dispatch:
inputs:
alias:
description: Contentful alias to target (master, staging, test)
type: string
default: master
text:
description: search string
type: string
required: true
jobs:
test:
name: Question JSON filter
runs-on: ubuntu-latest
environment: test
env:
RAILS_ENV: test
RAILS_MASTER_KEY: ${{ secrets.RAILS_MASTER_KEY }}
CONTENTFUL_ENVIRONMENT: ${{ inputs.alias }}
CONTENTFUL_PREVIEW: 'on'
steps:
-
name: Checkout Code
uses: actions/checkout@v4
-
name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.2
bundler-cache: true
-
name: Install Rubygems
run: bundle install --jobs 20 --retry 3
-
name: Filter
run: bundle exec rails 'eyfs:cms:search[${{ inputs.text }}]'