action-remove-labels icon indicating copy to clipboard operation
action-remove-labels copied to clipboard

Upgrade Node 12 to Node 16

Open Sugar-pack opened this issue 3 years ago • 2 comments

What you want to add

Upgrade Node 12 to Node 16

Why this is needed

Node 12 has been out of support since April 2022 And all of the users receive a warning while running your action.

Sugar-pack avatar Oct 20 '22 09:10 Sugar-pack

I think this action is forced to run in Node 16 now and it seems to still work. It would be good to update the action to Node 20 to get rids of all the warnings.

Ana06 avatar Feb 28 '24 17:02 Ana06

If anyone is looking for alternative I suggest to use code below

- uses: "actions/github-script@v7"
  name: "Add PR labels"
  with:
    script: |
      github.rest.issues.addLabels({
        owner: context.repo.owner,
        repo: context.repo.repo,
        issue_number: context.payload.pull_request.number,
        name: 'LABEL_NAME'
      });
  if: github.event_name == 'pull_request'

kmasuhr avatar Aug 05 '24 14:08 kmasuhr