From 15f3f261fbd2fe6c0ecbb1ffa533b1cd77eee2ad Mon Sep 17 00:00:00 2001 From: Andrew Shumway Date: Tue, 2 May 2023 09:16:40 -0600 Subject: [PATCH] Add action to find PR number --- .github/workflows/checks.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 1e8a17b6d..1b5fbf816 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -7,6 +7,9 @@ on: pull_request_target: types: - opened + permissions: + pull-requests: write + contents: write env: NOTIFY_ENVIRONMENT: test @@ -23,9 +26,12 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./.github/actions/setup-project + - uses: jwalton/gh-find-current-pr@v1 + id: findPr - uses: ArtiomTr/jest-coverage-report-action@v2 with: test-script: npm test + prnumber: ${{ steps.findPr.outputs.number }} - name: Run style checks run: pipenv run flake8 . - name: Check imports alphabetized