From b00342be3b0939a045c77fce5409bbbb2f3c43be Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Wed, 7 Aug 2024 23:19:24 -0700 Subject: [PATCH] Making this more readable now that it's an expression --- .github/workflows/third-party-check.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/third-party-check.yaml b/.github/workflows/third-party-check.yaml index b9b144ce6168a2..beda0af41b0622 100644 --- a/.github/workflows/third-party-check.yaml +++ b/.github/workflows/third-party-check.yaml @@ -27,12 +27,12 @@ jobs: name: Check For Submodule Update Label runs-on: ubuntu-latest steps: - - if: ${{ contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') == false }} + - if: ${{ !contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') }} name: Fail run: | echo This pull request attempts to update submodules without the changing-submodules-on-purpose label. Please apply that label if the changes are intentional, or remove those changes. exit 1 - - if: ${{ contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') == true }} + - if: ${{ contains(github.event.pull_request.labels.*.name, 'changing-submodules-on-purpose') }} name: Success run: | echo PR looks good.