Skip to content

Commit

Permalink
chore: comment on pr
Browse files Browse the repository at this point in the history
  • Loading branch information
caixiangyue committed Nov 9, 2023
1 parent 5c3827c commit 4ad0bab
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/why.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Some workflow

on:
issue_comment:
types: [created]

jobs:
comment:
if: contains(github.event.comment.body, 'why')

runs-on: ubuntu-latest

steps:
- name: Add comment to PR
env:
URL: ${{ github.event.issue.comments_url }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
curl \
-X POST \
$URL \
-H "Content-Type: application/json" \
-H "Authorization: token $GITHUB_TOKEN" \
--data '{ "body": "blah blah" }'

0 comments on commit 4ad0bab

Please sign in to comment.