-
Notifications
You must be signed in to change notification settings - Fork 7
40 lines (37 loc) · 1.16 KB
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Update @axe-core/watcher
on:
workflow_dispatch:
schedule:
- cron: '0 2 * * *'
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 3
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: |
Packages=$(find . -name "package.json" -not -path "*/node_modules/*")
for Package in $Packages; do
Dir=$(dirname "$Package")
if [[ "$Dir" == "." ]]; then
continue
fi
echo "Updating $Dir"
cd "$Dir"
npm install --save-dev @axe-core/watcher@latest
cd -
done
- name: Open PR
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: 'chore: Update @axe-core/watcher'
branch: auto-update-watcher
base: main
title: 'chore: Update @axe-core/watcher'
body: |
This patch updates version of [`@axe-core/watcher`](https://npmjs.org/@axe-core/watcher) to the latest stable version.
This PR was opened by a robot :robot: :tada:.