skills / write-javascript-actions

Write your own GitHub JavaScript Action and automate customized tasks unique to your workflow.
MIT License
112 stars 61 forks source link

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

Closed anujdeshpande closed 2 years ago

anujdeshpande commented 2 years ago

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

3.  See errors `(<unknown>): did not find expected '-' indicator while parsing a block collection at line 1 column 1`
4. 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](https://user-images.githubusercontent.com/969376/178639137-8dc3c1ef-4ba9-4205-ada1-7acbf19d8120.png)