diff --git a/.github/workflows/on-pull-request.yml b/.github/workflows/on-pull-request.yml index acdba7cd4b..c1029dfe9c 100644 --- a/.github/workflows/on-pull-request.yml +++ b/.github/workflows/on-pull-request.yml @@ -36,4 +36,19 @@ jobs: uses: romeovs/lcov-reporter-action@v0.2.21 with: github-token: ${{ secrets.GITHUB_TOKEN }} - lcov-file: ./coverage/lcov.info \ No newline at end of file + lcov-file: ./coverage/lcov.info + save_pr: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - name: Save PR number in file + run: | + mkdir -p ./pr + echo ${{ github.event.number }} + echo ${{ github.event.number }} > ./pr/NR + - uses: actions/upload-artifact@v2 + name: Upload artifact + with: + name: pr + path: pr/ + retention-days: 1 \ No newline at end of file