Skip to content

Instantly share code, notes, and snippets.

@weibeld
Last active May 1, 2024 13:53
Show Gist options
  • 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!"
@devluz2023
Copy link

hello word

@kedar-gopale
Copy link

added

@manjushrikrishna
Copy link

added the demo1.yml file

@Timmaaaa
Copy link

<3

@KrishuNihu
Copy link

testing

@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