Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Constant "error in your yaml syntax" #21

Closed
OZZlE opened this issue May 4, 2021 · 2 comments
Closed

Constant "error in your yaml syntax" #21

OZZlE opened this issue May 4, 2021 · 2 comments

Comments

@OZZlE
Copy link

OZZlE commented May 4, 2021

yml file:

name: Run tests
on:
  pull_request:
    branches: [master, develop]
jobs:
  create-envfile:
    runs-on: ubuntu-18.04
    steps:
    - name: Make envfile
      uses: SpicyPizza/create-envfile@v1
      with:
        CONTENTFUL_MANAGEMENT_TOKEN: ${{ secrets.CONTENTFUL_MANAGEMENT_TOKEN }}
        NEXT_PUBLIC_CONTENTFUL_DELIVERY_TOKEN: ${{ secrets.NEXT_PUBLIC_CONTENTFUL_DELIVERY_TOKEN }}
        NEXT_PUBLIC_CONTENTFUL_SPACE_ID: ${{ secrets.NEXT_PUBLIC_CONTENTFUL_SPACE_ID }}
        SITE_SEARCH_API_KEY: ${{ secrets.SITE_SEARCH_API_KEY }}
        NEXT_PUBLIC_CONTENTFUL_ENVIRONMENT: master
        SITE_SEARCH_ENGINE_SLUG: test
        directory: .
        file_name: .env
      - name: Install modules
        run: yarn
      - name: Run tests
        run: yarn jest
      - name: Run Translations & Build
        run: yarn translations && yarn build

Result:

Skärmavbild 2021-05-04 kl  15 34 33

@OZZlE
Copy link
Author

OZZlE commented May 4, 2021

- name: Install modules should have the same indentation as - name: Make envfile ... my bad but still get:

Unexpected input(s) 'envkey_CONTENTFUL_MANAGEMENT_TOKEN', 'envkey_NEXT_PUBLIC_CONTENTFUL_DELIVERY_TOKEN', 'envkey_NEXT_PUBLIC_CONTENTFUL_SPACE_ID', 'envkey_SITE_SEARCH_API_KEY', 'envkey_NEXT_PUBLIC_CONTENTFUL_ENVIRONMENT', 'envkey_SITE_SEARCH_ENGINE_SLUG', 'directory', valid inputs are ['entryPoint', 'args', 'file_name']

not sure how this is supposed to be used..

@AngelOnFira
Copy link
Member

The error you're getting is discussed more in #10, so I'll close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants