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

Upgrade the runner to use Nodejs 16

Open ricardodantas opened this issue 2 years ago • 9 comments

What you want to add

Upgrade runner to use Nodejs 16.

Why this is needed

Because the Nodejs 14 runner will get deprecated soon.

ricardodantas avatar Nov 15 '22 08:11 ricardodantas

I already created PR for that https://github.com/actions-ecosystem/action-add-labels/pull/456

ricardodantas avatar Nov 15 '22 08:11 ricardodantas

Bump.

Sure would be nice if this were merged.

pdehlke avatar Dec 21 '22 13:12 pdehlke

Hey any update on the node 16 bump? I noticed the PR mentioned above has been closed and never merged! Cheers

AleBorini avatar Jan 24 '23 11:01 AleBorini

Re: updates on the node 16 bump? @ricardodantas.

gaber85 avatar Feb 07 '23 04:02 gaber85

Same here just now.

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: actions-ecosystem/[email protected]. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

marcofranssen avatar Feb 16 '23 12:02 marcofranssen

is this action still maintained? this will start failing on June 1st

alexciesielski avatar May 17 '23 09:05 alexciesielski

I just replaced the action with the below code

uses: actions/github-script@v6
with:
  script: |
    github.rest.issues.addLabels({
      issue_number: context.payload.pull_request.number,
      owner: context.repo.owner,
      repo: context.repo.repo,
      labels: ['label']
    })

alexciesielski avatar May 17 '23 10:05 alexciesielski

@micnncim I see your "busy" tag, but please take action on this. My workflows are 2 day from doom, and I need time to change versions after you release v2 or other next tag

denist-huma avatar May 30 '23 14:05 denist-huma

This repo is probably abandoned so easier to just use gh cli tool (available system wide on runners) to edit labels in PR like this:

      - name: Set label on PR
        run: gh issue edit PR_NUMBER --add-label label-to-add

After all not everything needs to be an action.

[!NOTE] Yeah it needs to be issue and not pr because somehow pr needs additional scopes to github token to work

piotrekkr avatar Jan 23 '24 15:01 piotrekkr