Update to Node 20 and update dependencies #25
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: shanegenschaw/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: shanegenschaw/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: shanegenschaw/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' | |
arguments-rocket: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: shanegenschaw/pull-request-comment-trigger@master | |
id: check | |
with: | |
trigger: "#deploy on ** environment" | |
reaction: rocket | |
allow_arguments: true | |
env: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- run: | | |
echo 'Found it!' | |
echo 'Deploy on ${{ fromJson(steps.check.outputs.arguments)[0] }}' | |
if: steps.check.outputs.triggered == 'true' |