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.

"Common Examples" fails to execute

See original GitHub issue

This action fails when using the “Common Examples” example from the readme:

workflows/label.yml:

# This workflow will triage pull requests and apply a label based on the
# paths that are modified in the pull request.
#
# To use this workflow, you will need to set up a .github/labeler.yml
# file with configuration.  For more information, see:
# https://github.com/actions/labeler/blob/master/README.md

name: Labeler
on: [pull_request]

jobs:
  label:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/labeler@v2
      with:
        repo-token: "${{ secrets.GITHUB_TOKEN }}"

labeler.yml:

# Add 'repo' label to any root file changes
repo:
  - ./*

# Add '@domain/core' label to any change within the 'core' package
@domain/core:
  - package/core/*
  - package/core/**/*

# Add 'test' label to any change to *.spec.js files within the source dir
test:
  - src/**/*.spec.js

# Add 'source' label to any change to src files within the source dir EXCEPT for the docs sub-folder
source:
- any: ['src/**/*', '!src/docs/*']

# Add 'frontend` label to any change to *.js files as long as the `main.js` hasn't changed
frontend:
- any: ['src/**/*.js']
  all: ['!src/main.js']

yields following error in gh actions:

  Set up job5s
  Run actions/labeler@v21s
    ^
Run actions/labeler@v2
##[error]YAMLException: end of the stream or a document separator is expected at line 6, column 1:
    @domain/core:
    ^
##[error]end of the stream or a document separator is expected at line 6, column 1:
    @domain/core:
    ^
  Complete job

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

10reactions
jalazizcommented, Jun 4, 2020

The README is a bit outdated. any and all are only available on the master branch. You must use actions/labeler@master until it is officially released.

2reactions
pomSensecommented, Nov 24, 2021

For anyone facing the issue that @kepikoi mentioned (using @domain/core): It seems that the @ symbol is causing the error in the .yml parsing. Just remove the @ if you are getting this error:

##[error]YAMLException: end of the stream or a document separator is expected at line 6, column 1:
    @domain/core:
    ^
Read more comments on GitHub >

github_iconTop Results From Across the Web

What are examples of an execution error? - Quora
Head-on collisions are fatal errors. Your car is wrecked, the other car is wrecked, and neither will drive again. And, quite possibly, one...
Read more >
Fix the top 10 most common compile time errors in Java
Here are the 10 most commonly encountered Java compile time errors: ... Example of an 'unreachable code' error, one of several common Java...
Read more >
The 7 Most Common Types of Errors in Programming and ...
4. Runtime Errors ... Runtime errors happen as a user is executing your program. The code might work correctly on your machine, but...
Read more >
Common Examples of Failure to Perform Job Duties in Maryland
You cannot hope to run a successful business if your employees consistently fail to hit performance benchmarks. Insufficient work ethic is one ...
Read more >
Types of Errors in Java with Examples - GeeksforGeeks
1. Run Time Error: ... Run Time errors occur or we can say, are detected during the execution of the program. Sometimes these...
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