Skip to content

Commit 6661ee4

Browse files
initial
1 parent 5ae7b44 commit 6661ee4

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/pr-nightly-comment.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ on:
55
types: [completed]
66
jobs:
77
pr_comment:
8-
if: github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'success'
8+
if: |
9+
github.event.workflow_run.event == 'pull_request' &&
10+
github.event.workflow_run.conclusion == 'success' &&
11+
!contains(fromJson(github.event.workflow_run.pull_requests).*.labels.*.name, 'no test needed')
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: Get the PR number

.github/workflows/pr-nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ env:
1616

1717
jobs:
1818
build:
19+
if: ${{ !contains(github.event.pull_request.labels.*.name, 'no test needed') }}
1920
runs-on: windows-latest
2021

2122
steps:

0 commit comments

Comments
 (0)