Hello GitHub Actions

Create and run a GitHub Actions workflow.

Step 5: Trigger the workflow

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

The shell script in the workflow will run whenever a new pull request is opened.

Seeing your action in action: The status of each workflow run that's triggered is shown in the pull request before it's merged: look for All checks have passed when you try out the steps below. You can also see a list of all the workflows that are running, or have finished running, in the Actions tab of your repository. From there, you can click on each workflow run to view more details and access log files.

A screenshot of the Actions tab showing a list of workflow runs.

⌨️ Activity: Trigger the workflow

  1. Make a new branch named test-workflow.
  2. Make a change, such as adding an emoji to your README.md file, and commit the change directly to your new branch.
  3. In the Pull requests tab, create a pull request that will merge test-workflow into main.
  4. Watch the workflow running in the checks section of the pull request.
  5. Notice the comment that the workflow adds to the pull request.
  6. Wait about 20 seconds, then refresh this page (the one you're following instructions from). Another workflow will run and will replace the contents of this README file with instructions for the next step.

Get help: Post in our discussion boardReview the GitHub status page

© 2023 GitHub • Code of ConductMIT License