From c9a3ca1b633708b0639a04750b09c46f03543802 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Thu, 2 Mar 2023 15:01:06 +0000 Subject: [PATCH] feat: update action --- .github/workflows/github-actions-demo.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/github-actions-demo.yml b/.github/workflows/github-actions-demo.yml index f7575b36b..cdf81869e 100644 --- a/.github/workflows/github-actions-demo.yml +++ b/.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 }}