diff --git a/.github/workflows/labels.yml b/.github/workflows/labels.yml index 79237c844589..3e520139bc28 100644 --- a/.github/workflows/labels.yml +++ b/.github/workflows/labels.yml @@ -39,6 +39,10 @@ jobs: update: runs-on: ubuntu-24.04-arm if: github.event_name != 'schedule' || github.repository_owner == 'NixOS' + env: + # TODO: Remove after 2026-03-04, when Node 24 becomes the default. + # https://github.blog/changelog/2025-09-19-deprecation-of-node-20-on-github-actions-runners/ + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true" steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: diff --git a/ci/github-script/labels.js b/ci/github-script/labels.js index 6ff98be6c026..faf7693c0f04 100644 --- a/ci/github-script/labels.js +++ b/ci/github-script/labels.js @@ -147,9 +147,8 @@ module.exports = async ({ github, context, core, dry }) => { ).labels Object.assign(prLabels, evalLabels, { - '12.approved-by: package-maintainer': Array.from(maintainers).some( - (m) => approvals.has(m), - ), + '12.approved-by: package-maintainer': + maintainers.intersection(approvals).size > 0, }) }