diff --git a/.github/workflows/scrape-definitions.yml b/.github/workflows/definitions.yml similarity index 51% rename from .github/workflows/scrape-definitions.yml rename to .github/workflows/definitions.yml index ef4d1e1c3..a00b60d0e 100644 --- a/.github/workflows/scrape-definitions.yml +++ b/.github/workflows/definitions.yml @@ -1,7 +1,6 @@ -name: Generate Definitions +name: Definitions on: - # https://crontab.guru/#0_*/4_*_*_* - schedule: [{ cron: '0 */4 * * *' }] # every 4 hrs + schedule: [{cron: '0 */6 * * *'}] # 6hrly https://crontab.guru/#0_*/6_*_*_* workflow_dispatch: jobs: @@ -29,3 +28,22 @@ jobs: branch: latest-scraped-definitions title: 'Scraped latest definitions' body: ${{ steps.log.outputs.message }} + + lts: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - run: npm ci + - run: npm run lint:lts -- --fix + - if: failure() + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.BOT_TOKEN }} + committer: 'nodenv bot ' + commit-message: 'Add LTS warning messages' + branch: lts-warning-message + title: 'Adds/Updates LTS warning messages' + body: |- + [![node lts schedule](https://raw.githubusercontent.com/nodejs/Release/main/schedule.svg)](https://github.com/nodejs/Release) + + > Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action diff --git a/.github/workflows/fix-lts.yml b/.github/workflows/fix-lts.yml deleted file mode 100644 index d57808131..000000000 --- a/.github/workflows/fix-lts.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Fix LTS Warnings -on: - schedule: [{ cron: '0 0 * * *' }] # daily: https://crontab.guru/#0_0_*_*_* - workflow_dispatch: - -jobs: - fix: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - run: npm ci - - run: npm run lint:lts -- --fix - - if: failure() - uses: peter-evans/create-pull-request@v6 - with: - token: ${{ secrets.BOT_TOKEN }} - committer: 'nodenv bot ' - commit-message: 'Add LTS warning messages' - branch: lts-warning-message - title: 'Adds/Updates LTS warning messages' - body: |- - [![node lts schedule](https://raw.githubusercontent.com/nodejs/Release/main/schedule.svg)](https://github.com/nodejs/Release) - - > Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action