Skip to content

Latest commit

 

History

History
42 lines (22 loc) · 1.69 KB

File metadata and controls

42 lines (22 loc) · 1.69 KB

Step 4: Trigger the workflow

You've now added a fully functioning workflow to your repository! 😄

📖 Theory: Seeing your workflow in action

All the running and finished workflows can be seen on the Actions tab of your repository.

Because you set the workflow to run on the pull_request event, it will automatically trigger when a pull request is opened.

Tip

Workflow associated to pull request can also be seen on the pull request log near the merge button. You can even create a rule that prevents merging if the workflow fails!

⌨️ Activity: Trigger the workflow

  1. In the Pull requests tab, create a pull request from welcome-workflow branch into main.

  2. Notice the comment that the workflow adds to the pull request.

  3. Notice the area near the merge button that "All checks have passed".

  4. With the pull request created and our workflow triggered, Mona will prepare the next step in this exercise!

⌨️ Activity: (optional) Inspect the workflow

  1. At the top of the repository, select the Actions tab.

  2. In the left sidebar, select the workflow named Post welcome comment.

💡 Tip: You can ignore the other actions. Those were for teaching this exercise.

  1. Click the first run entry titled Welcome workflow to show a diagram of the run's jobs.

  2. Click on the job named Post welcome comment to see the full logs.

Having trouble? 🤷
  • Check the Actions tab for workflow run details and errors.