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

Commit 800f4d1

Browse files
committed
change trigger for 11_edit-workflow
1 parent e873718 commit 800f4d1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

responses/11_edit-workflow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ At this point we can't expect much from our workflow, if you remember all of its
44

55
We are going to add a new trigger to our workflow to make it easier for us to trigger it without the need to push changes to the repository. Remember that every time our workflow runs this Action we should see a new joke which means we need a good way to make it run a few times. If you recall there are many [events](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#webhook-events) that trigger a workflow run.
66

7-
We will use the `issues` event and specify the activity type to be when an issue get's `labeled`. This will allow us to trigger our workflow by simply placing a label on this pull request.
7+
We will use the `pull_request` event and specify the activity type to be when an issue get's `labeled`. This will allow us to trigger our workflow by simply placing a label on this pull request.
88

99
### :keyboard: Activity: Restore the workflow file
1010

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

1313
1. [Edit]({{workflowFile}}) your current workflow file
1414
2. Uncomment the contents of the file
15-
3. Change the `on:` property to reflect the `issues labeled` [event](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#webhook-events)
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)
1616
4. Add a new `step:` that has a `name:` of **ha-ha** and`uses:` your new `joke-action`
1717
5. Commit the changes to the `action-two` branch
1818

@@ -26,7 +26,7 @@ I'll respond once you commit your changes
2626
name: JS Actions
2727

2828
on:
29-
issues:
29+
pull_request:
3030
types: [labeled]
3131

3232
jobs:

0 commit comments

Comments
 (0)