Last active
May 1, 2024 13:53
-
-
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!" |
well
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello server