Skip to content

Commit 49adc86

Browse files
committed
Improve logic of label check
1 parent d469122 commit 49adc86

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

action.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ on:
1212

1313
jobs:
1414
check-labels:
15-
if: ${{ contains(fromJson('["bug", "documentation", "enhancement"]'), github.event.label.name) != true }}
1615
runs-on: ubuntu-latest
17-
1816
steps:
1917
- uses: actions/checkout@v3
20-
- name: Labels not added
18+
- name: Labels added
19+
if: ${{ contains(fromJson('["bug", "documentation", "enhancement"]'), github.event.label.name) == true }}
20+
run: echo Pass
21+
- name: Labels not added (bug, documentation, or enhancement)
22+
if: ${{ contains(fromJson('["bug"]'), github.event.label.name) != true }}
2123
run: exit 1
2224

0 commit comments

Comments
 (0)