Last active
October 23, 2024 13:34
-
-
Save weibeld/f136048d0a82aacc063f42e684e3c494 to your computer and use it in GitHub Desktop.
GitHub Actions example workflow 1 — Hello World!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: hello-world | |
on: push | |
jobs: | |
my-job: | |
runs-on: ubuntu-latest | |
steps: | |
- name: my-step | |
run: echo "Hello World!" |
hello job
top
test-job
hello world
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
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.
Finally, I run the action.
finally, i run the action
Hilow
<script src="https://gist.github.com/weibeld/f136048d0a82aacc063f42e684e3c494.js"></script>
4 revisions 🤣
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
well