-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1875 from Fryguy/gha_yarn_lock
Add GitHub Action to update yarn.lock weekly
- Loading branch information
Showing
1 changed file
with
44 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,44 @@ | ||
name: Update yarn.lock | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: '0 0 * * 0' | ||
|
||
jobs: | ||
update-yarn-lock: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up system | ||
run: bin/before_install | ||
- name: Set up Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18" | ||
cache: yarn | ||
registry-url: https://npm.manageiq.org/ | ||
- name: Update yarn.lock | ||
env: | ||
YARN_ENABLE_IMMUTABLE_INSTALLS: "false" | ||
run: | | ||
rm -f yarn.lock | ||
yarn install --mode update-lockfile | ||
git --no-pager diff | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
add-paths: | | ||
yarn.lock | ||
commit-message: Update yarn.lock with latest dependencies | ||
branch: update_yarn_lock | ||
author: ManageIQ Bot <[email protected]> | ||
committer: ManageIQ Bot <[email protected]> | ||
delete-branch: true | ||
labels: dependencies | ||
assignees: jeffibm | ||
team-reviewers: ManageIQ/committers-ui | ||
push-to-fork: miq-bot/manageiq-ui-classic | ||
title: Update yarn.lock with latest dependencies | ||
body: Update yarn.lock with latest dependencies | ||
token: ${{ secrets.PR_TOKEN }} |