Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Node 12 to Node 16 #413

Open
Sugar-pack opened this issue Oct 20, 2022 · 2 comments
Open

Upgrade Node 12 to Node 16 #413

Sugar-pack opened this issue Oct 20, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@Sugar-pack
Copy link

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
Copy link

Ana06 commented Feb 28, 2024

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
Copy link

kmasuhr commented Aug 5, 2024

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'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants