actions / labeler

An action for automatically labelling pull requests
MIT License
1.99k stars 419 forks source link

Node 16 gets warning #754

Closed tobolar closed 9 months ago

tobolar commented 9 months ago

Description: In the CT process, I geth the following warning:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/labeler@v4. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

My CI process:

jobs:
  label:
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
    steps:
      - uses: actions/labeler@v4
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"
          sync-labels: false

Justification: The github (abovementioned link) says:

For self-hosted runner administrators: Update your self-hosted runners to runner version v2.308.0 or later to ensure compatibility with Node 20 actions.

Are you willing to submit a PR? No

HarithaVattikuti commented 9 months ago

Hello @tobolar

Thankyou for creating this feature request.

Please upgrade labeler version to v5 where the following breaking changes are implemented: https://github.com/actions/labeler?tab=readme-ov-file#breaking-changes-in-v5

Let me know if this information assists you or if you require further help!

tobolar commented 9 months ago

That was it!

Sorry for this annoying issue. My mistake to not realize the update to v5 earlier. :-(