Skip to content

Commit c631ef1

Browse files
committed
Add GitHub Action to update yarn.lock weekly
1 parent 22109aa commit c631ef1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/yarn_lock.yaml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Update yarn.lock
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * 0'
7+
8+
jobs:
9+
update-yarn-lock:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up system
14+
run: bin/before_install
15+
- name: Set up Node
16+
uses: actions/setup-node@v3
17+
with:
18+
node-version: "18"
19+
cache: yarn
20+
registry-url: https://npm.manageiq.org/
21+
- name: Update yarn.lock
22+
env:
23+
YARN_ENABLE_IMMUTABLE_INSTALLS: "false"
24+
run: |
25+
rm -f yarn.lock
26+
yarn install --mode update-lockfile
27+
git --no-pager diff
28+
- name: Create Pull Request
29+
uses: peter-evans/create-pull-request@v5
30+
with:
31+
add-paths: |
32+
yarn.lock
33+
commit-message: Update yarn.lock with latest dependencies
34+
branch: update_yarn_lock
35+
author: ManageIQ Bot <[email protected]>
36+
committer: ManageIQ Bot <[email protected]>
37+
delete-branch: true
38+
labels: dependencies
39+
assignees: jeffibm
40+
team-reviewers: ManageIQ/committers-ui
41+
push-to-fork: miq-bot/manageiq-ui-classic
42+
title: Update yarn.lock with latest dependencies
43+
body: Update yarn.lock with latest dependencies
44+
token: ${{ secrets.PR_TOKEN }}

0 commit comments

Comments
 (0)