Examples of GitHub Actions Workflows and Actions for various use cases
Workflow: deploy-on-comment.yml
Event: issue_comment
Run the workflow when a specific comment is made on a pull request. The workflow will only run if the comment contains the string /deploy
.
See this PR for an example.
Workflow: issue-pr-comment.yml
Event: issues
, pull_request
, issue_comment
Run the workflow when an issue or pull request is opened or when a comment is made on an issue or pull request.
Create an issue or pull request, or comment on an issue or pull request to see the workflow run. Then, go to the Actions tab to see the workflow run.
Action: event-summary
Write the GitHub event to the workflow summary. See the following links for more information: