Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Evans committed Apr 9, 2020
1 parent bfe8b63 commit 4b81c64
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/create-on-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Create Comment
on:
pull_request:
branches:
- master
jobs:
createComment:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

# For debugging purposes. Remove this in production.
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"

- name: Create comment
uses: ./
id: couc
with:
issue-number: ${{ github.event.number }}
body: |
This is a multi-line test comment
- With GitHub **Markdown**
- Created by [create-or-update-comment][1]
[1]: https://github.com/peter-evans/create-or-update-comment
reaction-type: '+1'

- name: Check outputs
run: |
echo "Comment ID - ${{ steps.couc.outputs.comment-id }}"

0 comments on commit 4b81c64

Please sign in to comment.