Quantcast
Channel: GitHub Learning Lab - GitHub Community
Viewing all articles
Browse latest Browse all 136

Stuck on [writing-js-actions] - unable to add an action

$
0
0

EDIT: SORRY I’m blind!!! I guess “actions:” does exist as something I am supposed to put in. I’m sorry!

If possible I’d like to close this thread.

ORIGINAL POST:

I’m having a difficult time getting this tutorial to recognize the code in my yaml file.

Here is the state of my yaml:

name: JS Actions
on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v1

To which I get the error:

Uh oh, I’m specifically looking to see whether .github/workflows/my-workflow.yml contains the following code:

action:

I’ll respond when I detect a new commit on this branch.

Got:


This is a little confusing, as I haven’t seen the word “action:” Even more confusing is that “got” is empty, when I definitely have exactly the above pushed to the proper branch.

The instructions tell me to do this:

  1. Edit the my-workflow.yml to have the following contents:
name: JS Actions 
  on: [push] 
    jobs: 
      action: 
        runs-on: ubuntu-latest 
      steps: 
        - uses: actions/checkout@v1

Furthermore, when I add another line below - uses: actions/checkout@v1, it gives me an error, telling me that the last line should be - uses: actions/checkout@v1

Here is my yml file. I do not see any extra lines, spaces, or characters after this command like the screenshot suggests I have

image

Am I missing something?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 136

Trending Articles