jefflinse / pr-semver-bump

A GitHub Action to bump and tag a new semantic version when a pull request is merged.
MIT License
24 stars 11 forks source link

Getting error saying Node.js 12 are deprecated #43

Closed jeroenassemblyosm closed 1 year ago

jeroenassemblyosm commented 1 year ago

Hi there, sorry a bit of a noob in GitHub actions so asking it here:

I get the following error when I run the action: Error: failed to fetch data for PR #53: Not Found And the warning: Node.js 12 actions are deprecated. Please update the following actions to use Node.js 16: jefflinse/pr-semver-bump@v1. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. I'm using ubuntu-latest to run, see yml:

jobs: validate-pr: name: Validate PR Open runs-on: ubuntu-latest

  outputs:
    version: ${{steps.tag-version.outputs.version}}

  steps:
    - name: Checkout repo
      uses: actions/checkout@v3
      with:
        fetch-depth: 0          

    - name: Validate Pull Request Metadata
      id: tag-version
      uses: jefflinse/pr-semver-bump@v1
      with:
        mode: validate
        repo-token: ${{ secrets.GH_TOKEN }}
        major-label: major
        minor-label: minor
        patch-label: patch
        require-release-notes: true
        release-notes-prefix: ''
        release-notes-suffix: ''
        with-v: false

I was working before, but today it doesn't work anymore. Do you perhaps know how to fix it? Thanks in advance!