-
Notifications
You must be signed in to change notification settings - Fork 30.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: add GitHub Action to update tools modules
Update ESLint, Babel, remark, and so on. Run once a week.
- Loading branch information
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: "tools update" | ||
on: | ||
schedule: | ||
# Run once a week at 00:05 AM UTC on Saturday. | ||
- cron: '5 0 * * 6' | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
tools_update: | ||
if: github.repository == 'nodejs/node' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- run: tools/update-eslint.sh | ||
- run: tools/update-babel-eslint.sh | ||
- run: | | ||
(cd tools/lint-md && rm -rf package-lock.json node_modules && npm install --ignore-scripts) | ||
make lint-md-rollup | ||
- uses: gr2m/create-or-update-pull-request-action@v1 # Create a PR or update the Action's existing PR | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} | ||
with: | ||
author: Node.js GitHub Bot <github-bot@iojs.org> | ||
body: "This is an automated update of dependencies in the tools directory." | ||
branch: "actions/tools-update" # Custom branch *just* for this Action. | ||
commit-message: "tools: update tools packages" | ||
labels: tools | ||
title: "tools: update tools packages" |