diff --git a/.github/workflows/pr-comment.yaml b/.github/workflows/pr-comment.yaml new file mode 100644 index 00000000000..993a5ba6dcf --- /dev/null +++ b/.github/workflows/pr-comment.yaml @@ -0,0 +1,16 @@ +name: PR comment +on: issue_comment + +jobs: + pr_commented: + name: PR comment workflow + if: ${{ github.event.issue.pull_request }} + runs-on: ubuntu-latest + steps: + - name: What is the comment + run: | + echo "Comment on PR #${{ github.event.comment.body }}" + - name: Comment contains trigger + if: contains(github.event.comment.body, 'test comment') + run: | + echo "Comment on PR #${{ github.event.issue.number }}"