Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

Commit bb02dba

Browse files
Update 09_new-action.md
1 parent 665bde4 commit bb02dba

File tree

1 file changed

+18
-21
lines changed

1 file changed

+18
-21
lines changed

responses/09_new-action.md

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,22 @@ Before we continue we are going to need to do a few things. First and foremost o
55
### :keyboard: Activity: Setting up the next action
66

77
1. [Edit]({{workflowFile}}) your workflow file by commenting out every single line. _(To comment in `.yml`, add a `#` symbol to the beginning of every line)_.
8+
```yaml
9+
# name: JS Actions
10+
11+
# on: [push]
12+
13+
# jobs:
14+
# action:
15+
16+
# runs-on: ubuntu-latest
17+
18+
# steps:
19+
# - uses: actions/checkout@v1
20+
21+
# - name: hello-action
22+
# uses: ./.github/actions/hello-world
23+
```
824
2. Commit the changes to a new branch, you can name it `action-two`.
925
3. Create a pull request named **External APIs**
1026
4. Supply the pull request with body content. Remember, this area can be used a notes later.
@@ -13,27 +29,8 @@ Before we continue we are going to need to do a few things. First and foremost o
1329
You will still see the workflow trying to execute with every push if you look at the [Actions tab]({{actionsUrl}}), however it will seem as though it fails. This is because there is a workflow file in the `.github/workflows` directory. The failure isn't actually a failure either, if you expand it you will see that there is simple no triggers for that given workflow and therefore it doesn't run. I have placed a screenshot below so you can become familiar with what this error looks like without the need to go to your [Actions tab]({{actionsUrl}}).
1430

1531
![No trigger screenshot](https://i.imgur.com/rARtXc1.png)
16-
Like our first action, I'll respond in the new pull request when I detect it has been opened.
17-
18-
---
1932

20-
<details><summary>The complete workflow can be viewed by clicking here</summary>
2133

22-
```yaml
23-
# name: JS Actions
24-
25-
# on: [push]
26-
27-
# jobs:
28-
# action:
29-
30-
# runs-on: ubuntu-latest
31-
32-
# steps:
33-
# - uses: actions/checkout@v1
34-
35-
# - name: hello-action
36-
# uses: ./.github/actions/hello-world
37-
```
34+
---
3835

39-
</details>
36+
Like our first action, I'll respond in the new pull request when I detect it has been opened.

0 commit comments

Comments
 (0)