Skip to content

Instantly share code, notes, and snippets.

@weibeld
Last active May 1, 2024 13:53
Show Gist options
  • Star 10 You must be signed in to star a gist
  • Fork 17 You must be signed in to fork a gist
  • Save weibeld/f136048d0a82aacc063f42e684e3c494 to your computer and use it in GitHub Desktop.
Save weibeld/f136048d0a82aacc063f42e684e3c494 to your computer and use it in GitHub Desktop.
GitHub Actions example workflow 1 — Hello World!
name: hello-world
on: push
jobs:
my-job:
runs-on: ubuntu-latest
steps:
- name: my-step
run: echo "Hello World!"
@archbong
Copy link

hello server

@mechatemesgen
Copy link

well

@aliraza556
Copy link

hello job

@koubila
Copy link

koubila commented Feb 3, 2024

top

@Bhargav2525
Copy link

test-job

@LumiSage
Copy link

hello world

@Indranilsen09
Copy link

Hi weibeld, Whenever I try copy pasting this to Online Yaml Formatter (eg: https://jsonformatter.org/yaml-formatter)
it changes the format into:-

name: Hello-world
'on': push
jobs:
my-job: 'runs-on:ubuntu-latest'
steps:
- name: my-step
run: echo "Hello World!"

Can you Explain me why this is happening and also, How you're maintaining indents and Spaces while writing yml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment