ataylorme / eslint-annotate-action

A GitHub action that takes ESLint results from a JSON file and adds them as annotated pull request comments
MIT License
88 stars 32 forks source link

Node 12 actions are deprecated #60

Closed mrmeyers99 closed 1 year ago

mrmeyers99 commented 1 year ago

I get the following warning when using this action:

Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: ataylorme/eslint-annotate-action@1.2.0. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/.

This action needs to be upgraded to Node 16 to get rid of that warning.

ataylorme commented 1 year ago

@mrmeyers99 which version of the action are you using? v2 does use Node 16 (see here)

It can be used like this:

- name: Annotate Code Linting Results
  uses: ataylorme/eslint-annotate-action@v2
  with:
    repo-token: "${{ secrets.GITHUB_TOKEN }}"
    report-json: "eslint_report.json"
mrmeyers99 commented 1 year ago

Ahh, I was looking at the tags and releases and didn't see a v2. I'm using the latest v1 version. I'll try out the v2 branch. Thanks!

westonruter commented 1 year ago

@ataylorme hey! 🙂 Curious if a new v2 release is going to be published?

ataylorme commented 1 year ago

@westonruter v2 is published and the recommended version to reference

https://github.com/ataylorme/eslint-annotate-action/tree/v2

gita-vahdatinia commented 11 months ago

It's not published/tagged properly on the github actions marketplace here; so linters say that the @v2 version does not exist.