Skip to content

Instantly share code, notes, and snippets.

@weibeld
Last active October 23, 2024 13:34
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!"
@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

@feenberg
Copy link

So, where does "Hello,world" get written? Github reports "success". I thought it might be in an email, (like the Linux at or batch commands) but none was received. I tried redircting the output to a file in the current directory but that caused an error.

@webyoung
Copy link

Finally, I run the action.

@rajagaurdevops
Copy link

finally, i run the action

@fischerpj
Copy link

Hilow

@fischerpj
Copy link

<script src="https://gist.github.com/weibeld/f136048d0a82aacc063f42e684e3c494.js"></script>

@Paul-Browne
Copy link

4 revisions 🤣

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