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

Commit bce4c86

Browse files
Update 11_edit-workflow.md
1 parent 55628ee commit bce4c86

File tree

1 file changed

+19
-25
lines changed

1 file changed

+19
-25
lines changed

responses/11_edit-workflow.md

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,37 +10,31 @@ We will use the `pull_request` event and specify the activity type to be when an
1010

1111
Let's change the tigger and add the joke action
1212

13-
1. [Edit]({{workflowFile}}) your current workflow file
14-
2. Uncomment the contents of the file
15-
3. Change the `on:` property to reflect the `pull_request labeled` [event](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#webhook-events)
16-
4. Add a new `step:` that has a `name:` of **ha-ha** and`uses:` your new `joke-action`
17-
5. Commit the changes to the `action-two` branch
13+
1. [Edit]({{workflowFile}}) your current workflow file to contain the following:
14+
```yaml
15+
name: JS Actions
1816

19-
I'll respond once you commit your changes
20-
21-
---
17+
on:
18+
pull_request:
19+
types: [labeled]
2220

23-
<details><summary>The complete workflow can be viewed by clicking here</summary>
21+
jobs:
22+
action:
23+
runs-on: ubuntu-latest
2424

25-
```yaml
26-
name: JS Actions
25+
steps:
26+
- uses: actions/checkout@v1
2727

28-
on:
29-
pull_request:
30-
types: [labeled]
28+
- name: hello-action
29+
uses: ./.github/actions/hello-world
3130

32-
jobs:
33-
action:
34-
runs-on: ubuntu-latest
31+
- name: ha-ha
32+
uses: ./.github/actions/joke-action
33+
```
34+
2. Commit the changes to the `action-two` branch
3535

36-
steps:
37-
- uses: actions/checkout@v1
3836

39-
- name: hello-action
40-
uses: ./.github/actions/hello-world
4137

42-
- name: ha-ha
43-
uses: ./.github/actions/joke-action
44-
```
38+
---
4539

46-
</details>
40+
I'll respond once you commit your changes

0 commit comments

Comments
 (0)