forked from bazel-contrib/rules_nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add GitHub Workflow to update NodeJS versions every night
- Loading branch information
Showing
1 changed file
with
37 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,37 @@ | ||
# See https://github.com/marketplace/actions/github-action-for-yarn | ||
|
||
name: Update NodeJS Versions | ||
|
||
on: | ||
schedule: | ||
# run at 01:30 UTC daily | ||
- cron: "30 1 * * *" | ||
|
||
jobs: | ||
updateNodejsVersions: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Git Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: | ||
|
||
- name: Run yarn update-nodejs-versions | ||
uses: borales/actions-yarn@v2.0.0 | ||
with: | ||
cmd: update-nodejs-versions | ||
|
||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
token: ${{ secrets.PAT }} | ||
commit-message: Update NodeJS Versions | ||
title: Update NodeJS Versions | ||
body: | | ||
- Updated NodeJS Versions using `yarn update-nodejs-versions` | ||
Auto-generated by [create-pull-request][1] | ||
|
||
[1]: https://github.com/peter-evans/create-pull-request | ||
branch: update-nodejs-versions |