From cdab4cc4586304e4aaa0465af73ef88c6351a2c1 Mon Sep 17 00:00:00 2001 From: Alex Li Date: Fri, 17 Mar 2023 09:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Improve=20the=20check=20with=20t?= =?UTF-8?q?he=20infra=20label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/check_issues_access.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check_issues_access.yml b/.github/workflows/check_issues_access.yml index 391ab3a91..584a1d5c2 100644 --- a/.github/workflows/check_issues_access.yml +++ b/.github/workflows/check_issues_access.yml @@ -8,7 +8,7 @@ on: jobs: verify_access: runs-on: ubuntu-latest - if: ${{ join(github.event.issue.labels) == '' || contains('infra', github.event.issue.labels)}} + if: ${{ join(github.event.issue.labels) == '' || contains(github.event.issue.labels.*.name, 'infra')}} steps: - uses: actions-cool/check-user-permission@v2 id: checkIfUserHasWriteAccess