action-remove-labels
action-remove-labels copied to clipboard
Upgrade Node 12 to Node 16
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.
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.
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'