Browse Source

feat: update action

pull/1367/head
natdeanlewissoftwire 3 years ago
parent
commit
c9a3ca1b63
  1. 13
      .github/workflows/github-actions-demo.yml

13
.github/workflows/github-actions-demo.yml

@ -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 }}

Loading…
Cancel
Save