Skip to content

Commit

Permalink
Merge pull request #2 from parth-gr/abcl
Browse files Browse the repository at this point in the history
dfd
  • Loading branch information
parth-gr authored Jul 5, 2022
2 parents 4bc5499 + a540e12 commit 13cc4d7
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/abc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
on: issue_comment

jobs:
pr_commented:
# This job only runs for pull request comments
name: PR comment
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- run: |
echo A comment on PR $NUMBER
jq -n -r --arg body "$INPUT_MESSAGE" '{body: $body}' > payload.json
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" --data @payload.json https://api.github.com/repos/$REPO/pull/10492/comments
env:
NUMBER: ${{ github.event.issue.number }}
issue_commented:
# This job only runs for issue comments
name: Issue comment
if: ${{ !github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- run: |
echo A comment on issue $NUMBER
jq -n -r --arg body "$INPUT_MESSAGE" '{body: $body}' > payload.json
curl -X POST -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" --data @payload.json https://api.github.com/repos/$REPO/pull/10492/comments
env:
NUMBER: ${{ github.event.issue.number }}

0 comments on commit 13cc4d7

Please sign in to comment.