Skip to content

Commit

Permalink
Skip Report generation on scheduled run + non PR runs (#310)
Browse files Browse the repository at this point in the history
* Update mend_scan.yaml

* Update mend_scan.yaml

* Update mend_scan.yaml

* Update mend_scan.yaml

* Update mend_scan.yaml

* Update mend_scan.yaml
  • Loading branch information
shivenduverma-sap authored Nov 28, 2023
1 parent 2871a1f commit 450a46d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/mend_scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,15 @@ jobs:
echo "status=white_check_mark" >> $GITHUB_OUTPUT
fi
- name: Check if PR exists
uses: 8BitJonny/gh-get-current-pr@2.2.0
id: pr_exists
with:
filterOutClosed: true
sha: ${{ github.event.pull_request.head.sha }}

- name: Comment Mend Status on PR
if: ${{ github.event_name != 'schedule' && steps.pr_exists.outputs.pr_found == 'true' }}
uses: thollander/actions-comment-pull-request@v2.4.3
with:
message: |
Expand Down

0 comments on commit 450a46d

Please sign in to comment.