You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: responses/13_action-three-workflow.md
+26-34Lines changed: 26 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -25,47 +25,39 @@ We need to make some edits to the `my-workflow.yml` file to get it configured to
25
25
26
26
### :keyboard: Activity: Final workflow edit
27
27
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
36
31
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]
40
35
41
-
<details><summary>The complete workflow can be viewed by clicking here</summary>
36
+
jobs:
37
+
action:
38
+
runs-on: ubuntu-latest
42
39
43
-
```yaml
44
-
name: JS Actions
40
+
steps:
41
+
- uses: actions/checkout@v1
45
42
46
-
on:
47
-
pull_request:
48
-
types: [labeled]
43
+
- name: hello-action
44
+
uses: ./.github/actions/hello-world
49
45
50
-
jobs:
51
-
action:
52
-
runs-on: ubuntu-latest
46
+
- name: ha-ha
47
+
uses: ./.github/actions/joke-action
48
+
id: jokes
53
49
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**
56
58
57
-
- name: hello-action
58
-
uses: ./.github/actions/hello-world
59
59
60
-
- name: ha-ha
61
-
uses: ./.github/actions/joke-action
62
-
id: jokes
63
60
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
+
---
70
62
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