diff --git a/.github/workflows/community_champion_auto_labeler.yml b/.github/workflows/community_champion_auto_labeler.yml index c525bf4738f888b5ca84230982ff1f4f5da2db2f..8d991c8eb35a98e642d98e1ab3b1b9d30c2a003c 100644 --- a/.github/workflows/community_champion_auto_labeler.yml +++ b/.github/workflows/community_champion_auto_labeler.yml @@ -13,13 +13,65 @@ jobs: steps: - name: Check if author is a community champion and apply label uses: actions/github-script@v7 + env: + COMMUNITY_CHAMPIONS: | + 0x2CA + 5brian + 5herlocked + abdelq + afgomez + AidanV + akbxr + AlvaroParker + artemevsevev + bajrangCoder + bcomnes + Be-ing + blopker + bobbymannino + CharlesChen0823 + chbk + cppcoffee + davewa + ddoemonn + djsauble + fantacell + findrakecil + gko + huacnlee + imumesh18 + jacobtread + jansol + jeffreyguenther + jenslys + jongretar + lemorage + lnay + marcocondrache + marius851000 + mikebronner + ognevny + RemcoSmitsDev + romaninsh + Simek + someone13574 + sourcefrog + suxiaoshao + Takk8IS + tidely + timvermeulen + valentinegb + versecafe + vitallium + warrenjokinen + ya7010 + Zertsov with: script: | - const communityChampionBody = `${{ secrets.COMMUNITY_CHAMPIONS }}`; - - const communityChampions = communityChampionBody + const communityChampions = process.env.COMMUNITY_CHAMPIONS .split('\n') - .map(handle => handle.trim().toLowerCase()); + .map(handle => handle.trim().toLowerCase()) + .filter(handle => handle.length > 0); let author; if (context.eventName === 'issues') {