Skip to content

CMS search answers

CMS search answers #5

Workflow file for this run

---
# ------------------------------------------------------------------------------
#
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 }}]'