Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit fbf9671

Browse files
committedOct 30, 2021
build: add GitHub Action to update tools modules
Update ESLint, Babel, remark, and so on. Run once a week.
1 parent babd73c commit fbf9671

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed
 

‎.github/workflows/tools.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "tools update"
2+
on:
3+
schedule:
4+
# Run once a week at 00:05 AM UTC on Saturday.
5+
- cron: '5 0 * * 6'
6+
7+
workflow_dispatch:
8+
9+
jobs:
10+
tools_update:
11+
if: github.repository == 'nodejs/node'
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- run: tools/update-eslint.sh
16+
- run: tools/update-babel-eslint.sh
17+
- run: |
18+
(cd tools/lint-md && rm -rf package-lock.json node_modules && npm install --ignore-scripts)
19+
make lint-md-rollup
20+
- uses: gr2m/create-or-update-pull-request-action@v1 # Create a PR or update the Action's existing PR
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
23+
with:
24+
author: Node.js GitHub Bot <github-bot@iojs.org>
25+
body: "This is an automated update of dependencies in the tools directory."
26+
branch: "actions/tools-update" # Custom branch *just* for this Action.
27+
commit-message: "tools: update tools packages"
28+
labels: tools
29+
title: "tools: update tools packages"

0 commit comments

Comments
 (0)
Please sign in to comment.