Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Update Dockerfile #2
Nice work, you committed a
Step 2: Add the action's script
An entrypoint script must exist in our repository so that Docker has something to execute.
Nice work adding the
Next, we'll define a workflow that uses the GitHub Action.
Workflows are defined in special files in the
Workflows can execute based on your chosen event. For this lab, we'll be using the
We'll break down each line of the workflow in the next step.
Step 3: Add a workflow file
First, we'll add the bones of the workflow. We'll add the action itself in a later step.
Here's what it means:
Next, we need to specify a job or jobs to run.
Workflows piece together jobs, and jobs piece together steps. We'll now create a job that runs an action. Actions can be used from within the same repository, from any other public repository, or from a published Docker container image. We'll use an action that we'll define in this repository.
We'll add the block now, and break it down in the next step.
Step 4: Use an action in your workflow
Let's add the expected action to the workflow.
Nice, you just added an action block to your workflow file! Here are some important details about why each part of the block exists and what each part does.
Your action is about to be triggered!
Your repository now contains everything it needs for the action to be defined (in the
The action will run anytime a commit is recognized on the remote repository. Since you just pushed, let's wait for the workflow to be triggered. This might take a few minutes since it's the first time running in this repository.
Seeing your Action in action
You can see the action status reported below, or you can click the "Actions" tab in your repository. From there you will see the actions that have run, and you can click on the action's "Log" link to view details.
Step 5: Trigger the workflow
github-learning-lab bot left a comment
You should see the string "Hello world, I'm Mona!" printed at the bottom to
Step 6: Merge the workflow to