CMS search answers #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
# ------------------------------------------------------------------------------ | |
# | |
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 }}]' |