workflows/labels: use Node 24

This commit is contained in:
Wolfgang Walther 2025-10-11 13:29:09 +02:00
parent f0c1e4b672
commit b98ea083be
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1
2 changed files with 6 additions and 3 deletions

View file

@ -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:

View file

@ -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,
})
}