Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion responses/01.0_docker-success.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ An entrypoint script must exist in our repository so that Docker has something t
### :keyboard: Activity: Add an entrypoint script and commit it to your branch

1. As a part of this branch and pull request, create a file in the `/action-a/` directory titled `entrypoint.sh`. You can do so with [this quicklink]({{ actionAUrl }})
1. Add the following content to the `entrypoint.sh` file:
1. Add the following content to the `entrypoint.sh` file. Later in this tutorial, **$INPUT_MY_NAME** is going to get a value from **MY_NAME**.

```shell
#!/bin/sh -l
Expand Down
2 changes: 1 addition & 1 deletion responses/02.0_entrypoint-success.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ We will use an `input` parameter to read in the value of `MY_NAME`.
### :keyboard: Activity: Create action.yml

1. As a part of this branch and pull request, create a file titled `action-a/action.yml`. You can do so using [this quicklink]({{ actionAUrl }}) or manually.
1. Add the following content to the `action.yml` file:
1. Add the following content to the `action.yml` file. Feel free to change the values for **author**, **description** and **default** under **MY_NAME**, and **property values** under **branding**. You can visit [**Metadata syntax for GitHub Actions**](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions) to learn more about Metadata syntax, particular about [**branding**](https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#branding).

```yaml
name: "Hello Actions"
Expand Down
2 changes: 1 addition & 1 deletion responses/03.0_actionyml-success.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Next, we'll define a **workflow** that uses the GitHub Action.

### Workflow Files

Workflows are defined in special files in the `.github/workflows` directory, named `main.yml`.
[**Workflows**](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions) are defined in special files in the `.github/workflows` directory, named `main.yml`.

Workflows can execute based on your chosen event. For this lab, we'll be using the [`push`](https://developer.github.com/v3/activity/events/types/#pushevent) event.

Expand Down
10 changes: 6 additions & 4 deletions responses/04.0_workflow-block-success.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Next, we need to specify a job or jobs to run.

### Actions

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.
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. This specific workflow utilizes **GitHub Action** called [**Checkout V2**](/actions/checkout).

We'll add the block now, and break it down in the next step.

Expand All @@ -19,15 +19,17 @@ Let's add the expected action to the workflow.

### :keyboard: Activity: Add an action block to your workflow file

1. As a part of this branch and pull request, [edit `.github/workflows/main.yml`]({{ workflowEditUrl }}) to append the following content:
1. As a part of this branch and pull request, [edit `.github/workflows/main.yml`]({{ workflowEditUrl }}) to append the following content. Feel free to replace the value of **MY_NAME** with your name or something that you want to be printing out.
```yaml
jobs:
build:
name: Hello world action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ./action-a
- name: Check out repository
uses: actions/checkout@v2
- name: Use local action-a directory
uses: ./action-a
with:
MY_NAME: "Mona"
```
Expand Down