This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Arguments parsing implementation #119
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Pull Request Comment Trigger Example | |
on: | |
pull_request: | |
types: [opened] | |
issue_comment: | |
types: [created] | |
jobs: | |
hello: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: khan/pull-request-comment-trigger@master | |
id: check | |
with: | |
trigger: '#hello' | |
- run: 'echo Found it!' | |
if: steps.check.outputs.triggered == 'true' | |
eyes: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: khan/pull-request-comment-trigger@master | |
id: check | |
with: | |
trigger: '#look' | |
reaction: eyes | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
- run: 'echo Found it!' | |
if: steps.check.outputs.triggered == 'true' | |
rocket: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: khan/pull-request-comment-trigger@master | |
id: check | |
with: | |
trigger: '#deploy' | |
reaction: rocket | |
env: | |
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}' | |
- run: 'echo Found it!' | |
if: steps.check.outputs.triggered == 'true' |