Skip to content

[Bug] my-workflow.yml is incorrect; doesn't lint #3

@anujdeshpande

Description

@anujdeshpande

Describe the bug
I think the yml describing the full file after edits is incorrect
I used http://www.yamllint.com/ to check whether it lints as well

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'yaml lint'
  2. Paste the following
- name: JS Actions

on:
  issues:
    types: [labeled]

jobs:
  action:
     runs-on: ubuntu-latest

     steps:
       - uses: actions/checkout@v3

     	 - name: ha-ha
         uses: ./.github/actions/joke-action
  1. See errors (<unknown>): did not find expected '-' indicator while parsing a block collection at line 1 column 1
  2. You can see a live example of this fails on my repo here - https://github.com/anujdeshpande/test-action/actions/runs/2660634776/workflow

Expected behavior
The yml should lint.

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions