|
|
|
|
@ -6,6 +6,7 @@ permissions: write-all
|
|
|
|
|
jobs: |
|
|
|
|
test-action: |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
|
- run: echo ${{ github.event_name }} |
|
|
|
|
- run: echo ${{ github.event.action }} |
|
|
|
|
@ -16,3 +17,15 @@ jobs:
|
|
|
|
|
body: | |
|
|
|
|
https://patch-diff.githubusercontent.com/raw/${{ github.repository }}/pull/${{ github.event }}.diff |
|
|
|
|
reactions: 'rocket' |
|
|
|
|
- uses: actions/checkout@v1 |
|
|
|
|
# Find the PR associated with this push, if there is one. |
|
|
|
|
- uses: jwalton/gh-find-current-pr@v1 |
|
|
|
|
id: findPr |
|
|
|
|
with: |
|
|
|
|
# Can be "open", "closed", or "all". Defaults to "open". |
|
|
|
|
state: open |
|
|
|
|
# This will echo "Your PR is 7", or be skipped if there is no current PR. |
|
|
|
|
- run: echo "Your PR is ${PR}" |
|
|
|
|
if: success() && steps.findPr.outputs.number |
|
|
|
|
env: |
|
|
|
|
PR: ${{ steps.findPr.outputs.pr }} |
|
|
|
|
|