name: Fix LTS Warnings
on:
  schedule: [{ cron:  '0 0 * * *' }] # daily: https://crontab.guru/#0_0_*_*_*

jobs:
  fix:
    if: github.event_name == 'schedule'
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: npm ci
    - run: npm run lint:lts -- --fix
    - if: failure()
      uses: peter-evans/create-pull-request@v2
      with:
        token: ${{ secrets.REPO_TOKEN }}
        branch: lts-warning-message
        title: 'Update warning messages per LTS Schedule'
        author: '${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>'
        commit-message: 'Prepend warning message per LTS schedule'

name: Fix LTS Warnings
on:
  schedule: [{ cron:  '0 0 * * *' }] # daily: https://crontab.guru/#0_0_*_*_*

jobs:
  fix:
    if: github.event_name == 'schedule'
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - run: npm ci
    - run: npm run lint:lts -- --fix
    - if: failure()
      uses: peter-evans/create-pull-request@v2
      with:
        token: ${{ secrets.REPO_TOKEN }}
        branch: lts-warning-message
        title: 'Update warning messages per LTS Schedule'
        body: |-
          [![node lts schedule](https://raw.githubusercontent.com/nodejs/Release/master/schedule.svg)](https://github.com/nodejs/Release)

          > Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
        author: '${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>'
        commit-message: 'Prepend warning message per LTS schedule'

Add more details to LTS-fixed PRs
Add more details to LTS-fixed PRs