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/09_new-action.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,16 +2,15 @@
2
2
3
3
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.
4
4
5
-
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}}).
### :keyboard: Activity: Setting up the next Action
10
6
11
7
1.[Edit]({{workflowFile}) your workflow file by commenting out every single line.
12
8
2. Commit the changes to a new branch and name it `action-two`.
13
9
3. Create a pull request named **External APIs**
14
10
11
+
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}}).
Copy file name to clipboardExpand all lines: responses/13_action-three-workflow.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,11 +25,11 @@ 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.
28
+
1.[Edit]({{workflowFile}}) your `my-workflow.yml` file.
29
29
2. Assign the `ha-ha` step an `id:` of **jokes**
30
30
3. Add a new step named `create-issue`.
31
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 `${{steps.jokes.outputs.joke-output}}`
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
33
6. The `issue-maker` Action should have a property of `repo-token:` which has `${{secrets.GITHUB_TOKEN}}` as the value (I'll explain this in a later step, for now it's a secret 🤣🤷♂)
34
34
7. Commit the changes to a new branch and name it `action-three`.
35
35
8. Create a pull request named **Use Outputs**
@@ -64,8 +64,8 @@ jobs:
64
64
- name: create-issue
65
65
uses: ./.github/actions/issue-maker
66
66
with:
67
-
repo-token: ${{secrets.GITHUB_TOKEN}}
68
-
joke: ${{steps.jokes.outputs.joke-output}}
67
+
repo-token: {% raw %}${{secrets.GITHUB_TOKEN}}{% endraw %}
68
+
joke: {% raw %}${{steps.jokes.outputs.joke-output}}{% endraw %}
0 commit comments