diff --git a/.github/workflows/check_application_document.yml b/.github/workflows/check_application_document.yml index ebc4a953800..35fcca46578 100644 --- a/.github/workflows/check_application_document.yml +++ b/.github/workflows/check_application_document.yml @@ -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: |