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

Commit 4b41775

Browse files
committed
add data and response for 11_edit-workflow
1 parent 1a6e37f commit 4b41775

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,3 +266,4 @@ steps:
266266
with: 11_edit-workflow.md
267267
data:
268268
workflowFile: "%payload.repository.html_url%/edit/%actions.apiPr.data.head.ref%/.github/workflows/my-workflow.yml"
269+
actionsUrl: "%payload.repository.html_url%/actions"

responses/11_edit-workflow.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,40 @@
11
## Using your new Action
2+
3+
At this point we can't expect much from our workflow, if you remember all of its contents are commented out. Let's go ahead and fix that now so that we can see our Action fetch us a joke.
4+
5+
### :keyboard: Activity: Restore the workflow file
6+
7+
The great news is that we only need to add a call to our new Action. Follow these steps to do so:
8+
9+
1. [Edit]({{workflowFile}}) your current workflow file
10+
2. Uncomment the contents of the file
11+
3. Add a new `step:` that has a `name:` of **ha-ha** and`uses:` your new `joke-action`
12+
4. Commit the changes to the `action-two` branch
13+
5. Check the workflow results on the [Actions tab]({{actionsUrl}})
14+
15+
I'll respond once I notice your workflow has completed
16+
17+
---
18+
19+
<details><summary>The complete workflow can be viewed by clicking here</summary>
20+
21+
```yaml
22+
name: JS Actions
23+
24+
on: [push]
25+
26+
jobs:
27+
action:
28+
runs-on: ubuntu-latest
29+
30+
steps:
31+
- uses: actions/checkout@v1
32+
33+
- name: hello-action
34+
uses: ./.github/actions/hello-world
35+
36+
- name: ha-ha
37+
uses: ./.github/actions/joke-action
38+
```
39+
40+
</details>

0 commit comments

Comments
 (0)