Skip to content

Commit 6fdb390

Browse files
authored
[PM-18193] Remove scan.yml from Merge Queue status check and update test.yml report job skip (#4710)
1 parent ac6c90e commit 6fdb390

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/scan.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
workflow_dispatch:
55
pull_request_target:
66
types: [opened, synchronize]
7-
merge_group:
8-
types: [checks_requested]
97

108
jobs:
119
check-run:

.github/workflows/test.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,25 +90,27 @@ jobs:
9090
contents: read
9191
issues: write
9292
pull-requests: write
93-
if: success() && (github.event_name == 'push' || github.event_name == 'pull_request')
93+
if: success()
9494

9595
steps:
9696
- name: Download test artifacts
9797
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
98+
if: github.event_name == 'push' || github.event_name == 'pull_request'
9899
with:
99100
name: test-reports
100101

101102
- name: Upload to codecov.io
102103
id: upload-to-codecov
103104
uses: codecov/codecov-action@1e68e06f1dbfde0e4cefc87efeba9e4643565303 # v5.1.2
105+
if: github.event_name == 'push' || github.event_name == 'pull_request'
104106
continue-on-error: true
105107
with:
106108
os: linux
107109
files: kover/reportStandardDebug.xml
108110
fail_ci_if_error: true
109111

110112
- name: Comment PR if tests failed
111-
if: steps.upload-to-codecov.outcome == 'failure'
113+
if: steps.upload-to-codecov.outcome == 'failure' && (github.event_name == 'push' || github.event_name == 'pull_request')
112114
env:
113115
PR_NUMBER: ${{ github.event.number }}
114116
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)