octokit / request-action

A GitHub Action to send arbitrary requests to GitHub's REST API
https://github.com/marketplace/actions/GitHub-API-Request
MIT License
368 stars 48 forks source link

Node.js 12 warnings #193

Closed ghost closed 1 year ago

ghost commented 1 year ago

For a step using this action something like this:

      - name: Check to see if branch exists
        id: branch-exists
        uses: octokit/request-action@v2.x
        with:
          route: GET /repos/${{ github.repository_owner }}/${{ github.event.repository.name }}/git/ref/${{ env.BRANCH_NAME }}
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        continue-on-error: true

the code seems to work, but I keep getting warnings like this:

<jobname>
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: octokit/request-action

Is there a way around this, or at least a way to temporarily suppress the warning until this action is re-written for Node.js 16?

octokitbot commented 1 year ago

:tada: This issue has been resolved in version 2.1.7 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: