Skip to content

Commit

Permalink
Combine scrape and lts workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkarns committed May 30, 2024
1 parent 64cff44 commit 12fcd07
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 27 deletions.
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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 <[email protected]>'
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
24 changes: 0 additions & 24 deletions .github/workflows/fix-lts.yml

This file was deleted.

0 comments on commit 12fcd07

Please sign in to comment.