"Common Examples" fails to execute
See original GitHub issueThis 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:
- Created 3 years ago
- Comments:14 (5 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The README is a bit outdated.
any
andall
are only available on the master branch. You must useactions/labeler@master
until it is officially released.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: