Skip to content

Commit 36c03a9

Browse files
committed
✨ Improves bug issue workflow
- Simplifies the conditional check for Discord notifications on bug issues. - Ensures the workflow triggers correctly based on the presence of steps to reproduce and the absence of the "Skip notify Discord" option.
1 parent 856786a commit 36c03a9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/issue-bug-to-discord.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ jobs:
1010
runs-on: ubuntu-latest
1111

1212
# Run only for Bug-form issues AND when "Skip notify Discord" is NOT checked
13-
if: ${{
14-
contains(github.event.issue.body, '### Steps to reproduce') &&
15-
!contains(github.event.issue.body, '- [x] Skip notify Discord') &&
16-
!contains(github.event.issue.body, '- [X] Skip notify Discord')
17-
}}
13+
if: ${{ contains(github.event.issue.body, '### Steps to reproduce') && !contains(github.event.issue.body, '- [x] Skip notify Discord') && !contains(github.event.issue.body, '- [X] Skip notify Discord') }}
1814

1915
steps:
2016
- name: Send Discord notification

0 commit comments

Comments
 (0)