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

Commit ed7e425

Browse files
Update 13_action-three-workflow.md
1 parent bce4c86 commit ed7e425

File tree

1 file changed

+26
-34
lines changed

1 file changed

+26
-34
lines changed

responses/13_action-three-workflow.md

Lines changed: 26 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -25,47 +25,39 @@ We need to make some edits to the `my-workflow.yml` file to get it configured to
2525

2626
### :keyboard: Activity: Final workflow edit
2727

28-
1. [Edit]({{workflowFile}}) your `my-workflow.yml` file.
29-
2. Assign the `ha-ha` step an `id:` of **jokes**
30-
3. Add a new step named `create-issue`.
31-
4. The new step should have its `uses:` property point to `./.github/actions/issue-maker`
32-
5. The `issue-maker` action should consume the output of the `joke-action`. Add a `with:` property that takes a parameter of `joke:` with a value of `{% raw %}${{steps.jokes.outputs.joke-output}}{% endraw %}`
33-
6. The `issue-maker` action should have a property of `repo-token:` which has `{% raw %}${{secrets.GITHUB_TOKEN}}{% endraw %}` as the value (I'll explain this in a later step, for now it's a secret 🤣🤷‍♂)
34-
7. Commit the changes to a new branch, you can name it `action-three`.
35-
8. Create a pull request named **Use outputs**
28+
1. [Edit]({{workflowFile}}) your `my-workflow.yml` file to contain the following:
29+
```yaml
30+
name: JS Actions
3631

37-
Like our other actions, I'll respond in the new pull request when I detect it has been opened.
38-
39-
---
32+
on:
33+
pull_request:
34+
types: [labeled]
4035

41-
<details><summary>The complete workflow can be viewed by clicking here</summary>
36+
jobs:
37+
action:
38+
runs-on: ubuntu-latest
4239

43-
```yaml
44-
name: JS Actions
40+
steps:
41+
- uses: actions/checkout@v1
4542

46-
on:
47-
pull_request:
48-
types: [labeled]
43+
- name: hello-action
44+
uses: ./.github/actions/hello-world
4945

50-
jobs:
51-
action:
52-
runs-on: ubuntu-latest
46+
- name: ha-ha
47+
uses: ./.github/actions/joke-action
48+
id: jokes
5349

54-
steps:
55-
- uses: actions/checkout@v1
50+
- name: create-issue
51+
uses: ./.github/actions/issue-maker
52+
with:
53+
repo-token: {% raw %}${{secrets.GITHUB_TOKEN}}{% endraw %}
54+
joke: {% raw %}${{steps.jokes.outputs.joke-output}}{% endraw %}
55+
```
56+
2. Commit the changes to a new branch, you can name it `action-three`.
57+
3. Create a pull request named **Use outputs**
5658

57-
- name: hello-action
58-
uses: ./.github/actions/hello-world
5959

60-
- name: ha-ha
61-
uses: ./.github/actions/joke-action
62-
id: jokes
6360

64-
- name: create-issue
65-
uses: ./.github/actions/issue-maker
66-
with:
67-
repo-token: {% raw %}${{secrets.GITHUB_TOKEN}}{% endraw %}
68-
joke: {% raw %}${{steps.jokes.outputs.joke-output}}{% endraw %}
69-
```
61+
---
7062

71-
</details>
63+
Like our other actions, I'll respond in the new pull request when I detect it has been opened.

0 commit comments

Comments
 (0)