-
Notifications
You must be signed in to change notification settings - Fork 136
50 lines (50 loc) · 1.73 KB
/
deps.yaml
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
41
42
43
44
45
46
47
48
49
50
on:
workflow_dispatch:
schedule:
# every Monday morning
- cron: '0 1 * * 1'
name: deps
jobs:
findPackages:
runs-on: ubuntu-latest
outputs:
nodePaths: ${{ steps.interrogate.outputs.nodePaths }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
fetch-depth: 0
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: 14
- id: interrogate
run: node ./.github/workflows/list-node-paths-for-deps.js
updateDeps:
runs-on: ubuntu-latest
needs: findPackages
strategy:
fail-fast: false
max-parallel: 4
matrix:
package: ${{fromJson(needs.findPackages.outputs.nodePaths)}}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: ${{ matrix.node }}
- run: npm i -g npm-check-updates
- run: echo ./packages/${{ matrix.package }}
- run: ./scripts/update-dependencies.sh packages/${{ matrix.package }}
- uses: googleapis/code-suggester@9c92ffb751cbdc880473aa650013b3a3292f743a # v4
env:
ACCESS_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
with:
command: pr
upstream_owner: googleapis
upstream_repo: repo-automation-bots
description: 'ran ./scripts/update-dependencies.sh packages/${{ matrix.package }}'
title: 'deps: update ${{ matrix.package }} deps'
message: 'deps: update ${{ matrix.package }} deps'
branch: update-deps-${{ matrix.package }}
primary: main
force: true
git_dir: '.'