Skip to content

Commit

Permalink
Update regression_test.yml
Browse files Browse the repository at this point in the history
Skip stick and checkrun for PRs from forks.
  • Loading branch information
xiaocq2001 authored Nov 22, 2023
1 parent 2ce5c47 commit 455b78d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/regression_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ jobs:
- name: Create CheckRun for Code Coverage # Create check run to publish the code coverage summary to the check summary
uses: LouisBrunner/[email protected]
if: (github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository)
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Code Coverage
Expand All @@ -115,7 +116,7 @@ jobs:

- name: Sticky Pull Request Comment
uses: marocchino/[email protected]
if: github.event_name == 'pull_request'
if: (github.event_name == 'push') || (github.event.pull_request.head.repo.full_name == github.repository)
with:
# Indicate if new comment messages should be appended to previous comment message. Only `true` is allowed. Just skip this item when you don't need it.
append: true # optional, default is false
Expand Down

0 comments on commit 455b78d

Please sign in to comment.