actions-ecosystem / action-remove-labels

🏷️ GitHub Action to remove labels
https://github.com/marketplace/actions/actions-ecosystem-remove-labels
Apache License 2.0
55 stars 28 forks source link

Upgrade Node 12 to Node 16 #413

Open Sugar-pack opened 1 year ago

Sugar-pack commented 1 year ago

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.

Ana06 commented 6 months ago

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.

kmasuhr commented 1 month ago

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'