←  github actions

Views:

Creating a `Hello World` github action

Let's start with a basic Hello World github action:

  • Create your workflow file (hello-world.yml) inside .github/workflows folder
folder-structure
  • Now, we have to add the name, event and jobs in that workflow file
name: Hello World

on: push

jobs:
  say-hello-world:
    runs-on: ubuntu-latest
    steps:
      - run: echo Hello World

Result

Following is the output for the above github action-

hello-world-result