Skip to content

Commit b4c94fa

Browse files
authored
Create hello-world.yml
1 parent ca13ca9 commit b4c94fa

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/hello-world.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: hello-world
2+
# Each workflow file must incorporate at least one triggering event to be executed
3+
# these events encompass many github actions, pull request, issue commenting, even the succesful execution of another workflow
4+
# you can execute the workflow from an api
5+
6+
on: push #whenever you push a commit or tag, or create a repo froma template you trigger this event
7+
#Now we define what we want to happen after pushes, which we do by defining jobs
8+
#Each workflow has one or more jobs, each composed of a sequence of steps
9+
jobs:
10+
hello-world-job:
11+
#We name the job, and then we need to specify the runner on which we would like the job to run
12+
#There is two types of runners, a github runner and a self hosted runner
13+
runs-on: ubuntu-latest
14+
# Next we need to specify the steps that compose this job
15+
steps:
16+
- name: check out repository code #allows your workflow to retrieve the contents of your repo
17+
uses: actions/checkout@v4
18+
- run: echo "$(cat hello_world.txt)"
19+

0 commit comments

Comments
 (0)