question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when evaluating 'environment' for job 'core'. Unexpected type 'BasicExpressionToken' encountered while reading 'job environment'. The type 'MappingToken' was expected.

See original GitHub issue

Hello

Our jobs just started failing to run with the following error about 1 hour ago (12:15pm Eastern):

Error when evaluating ‘environment’ for job ‘core’. Unexpected type ‘BasicExpressionToken’ encountered while reading ‘job environment’. The type ‘MappingToken’ was expected.

Our workflow looks like this:

jobs:
  core:
    name: Core

    environment: ${{ github.event_name == 'pull_request' && 'ci' || 'release' }}

    # ...

Was there a breakage deployed in the orchestrator parsing environment for single names?

https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#example-using-a-single-environment-name

Thanks

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5

github_iconTop GitHub Comments

6reactions
thboopcommented, Apr 14, 2022

Hey 👋 , thanks for the report.

Our team is investigating this issue as a possible service bug and we’ll post updates in this issue once we know more.

1reaction
omsmithcommented, Apr 14, 2022

Thanks @thboop . We’ve had some successful builds already.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected type * encountered while reading 'resources ...
Running pipeline from template cause this error: Unexpected type 'SequenceToken' encountered while reading 'resources'. The type 'MappingToken' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found