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

Commit 3cbc8d3

Browse files
committed
complete 09_new-action
1 parent 1c7950a commit 3cbc8d3

1 file changed

Lines changed: 31 additions & 3 deletions

File tree

responses/09_new-action.md

Lines changed: 31 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,38 @@
1-
### :keyboard: Activity: Setting up the next Action
1+
## Breaking our workflow
22

33
Before we continue we are going to need to do a few things. First and foremost our workflow is currently setup to run each time there is a `push` event to this repository. Let's comment out our current workflow to prevent things from running but preserve the things you've worked on up to this point.
44

55
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}}).
66

77
![No trigger screenshot](https://i.imgur.com/rARtXc1.png)
88

9-
<!-- add action.yml -->
10-
<!-- open pull request -->
9+
### :keyboard: Activity: Setting up the next Action
10+
11+
1. [Edit]({{workflowFile}) your workflow file by commenting out every single line.
12+
2. Commit the changes to a new branch.
13+
3. Create a pull request named **External APIs**
14+
15+
Like our first Action, I'll respond in the new pull request when I detect it has been opened.
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+
29+
# runs-on: ubuntu-latest
30+
31+
# steps:
32+
# - uses: actions/checkout@v1
33+
34+
# - name: hello-action
35+
# uses: ./.github/actions/hello-world
36+
```
37+
38+
</details>

0 commit comments

Comments
 (0)