Skip to content

Instantly share code, notes, and snippets.

@developer-guy
Forked from weibeld/01-hello-world.yml
Created November 27, 2020 07:44
Show Gist options
  • Save developer-guy/0affe74dc38b3231b9b216f8d08d44d4 to your computer and use it in GitHub Desktop.
Save developer-guy/0affe74dc38b3231b9b216f8d08d44d4 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!"
@developer-guy
Copy link
Author

Let’s go through the definition of this workflow:

  • The name of the workflow is hello-world (defined by the name field).
  • The workflow is triggered by the push event (defined by the on field).
  • The workflow contains a single job with an ID of my-job (this is also the name of the job).
  • The my-job job uses the ubuntu-latest GitHub-hosted runner (defined by the runs-on field). At the time of this writing, the ubuntu-latest runner corresponds to Ubuntu 18.04 LTS.
  • The my-job job contains a single step named my-step. This step executes the shell command echo "Hello World!".

@developer-guy
Copy link
Author

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