Skip to content

Commit

Permalink
Fix check discussion private
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCaso committed Mar 22, 2023
1 parent d9522e7 commit 317940f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/check_application_document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Add 'discussion private' label if the application is private
if: ${{ !contains(github.event.pull_request.body, '- [ ] I prefer the discussion') || !contains(github.event.pull_request.body, '@_______:matrix.org') }}
if: |
${{
contains(github.event.pull_request.body, '- [x] I prefer the discussion') ||
(
contains(github.event.pull_request.body, '- [ ] I prefer the discussion') &&
!contains(github.event.pull_request.body, '@_______:matrix.org')
)
}}
uses: actions/github-script@v6
with:
script: |
Expand Down

0 comments on commit 317940f

Please sign in to comment.