From e47879ab67d41fc38697a4c62c00967a2a0af094 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Thu, 19 Aug 2021 09:59:14 -0700 Subject: [PATCH] Trying out the contains option again (#20967) --- .github/workflows/triage-unallowed-internal-changes.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/triage-unallowed-internal-changes.yml b/.github/workflows/triage-unallowed-internal-changes.yml index 6552389e36..d040ec2928 100644 --- a/.github/workflows/triage-unallowed-internal-changes.yml +++ b/.github/workflows/triage-unallowed-internal-changes.yml @@ -73,7 +73,7 @@ jobs: run: $GITHUB_WORKSPACE/.github/actions-scripts/enterprise-search-label.js - name: Fail if unallowed changes were made outside of the Search Sync label added - if: ${{ !steps.labelExists.outputs.versionToSync }} + if: false == steps.labelExists.outputs.versionToSync && false == contains(github.event.pull_request.labels.*.name, 'deprecate-lunr-index') run: | echo "Search indices are updated automatically every 4 hours. Please revert any changes you have made to the search indexes before you merge this PR. If you need to update the search indices directly after you merge your PR, you can manually run the search sync workflow: Sync search indexes. See the docs/contributing/search.md for more details. If you have any other questions, please ping us in #docs-engineering." exit 1