Skip to content

Commit

Permalink
fix(update-nodejs-versions): Fix NodeJS version for running GitHub Ac…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
mattinsler authored and alexeagle committed Dec 25, 2020
1 parent b53e31c commit 4ab8252
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/update-nodejs-versions.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
# 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 * * *"
# run at 01:30 UTC daily
- cron: '30 1 * * *'

jobs:
updateNodejsVersions:
Expand All @@ -15,23 +13,26 @@ jobs:
- name: Git Checkout
uses: actions/checkout@v2
with:
fetch-depth:
fetch-depth: 0

- name: Run yarn update-nodejs-versions
uses: borales/actions-yarn@v2.0.0
- name: Setup NodeJS
uses: actions/setup-node@v2
with:
cmd: update-nodejs-versions
node-version: '14.x'

- name: Run yarn update-nodejs-versions
run: yarn run 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
token: ${{ secrets.PAT }}
commit-message: Update NodeJS Versions
title: Update NodeJS Versions
body: |
- Updated NodeJS Versions using `yarn run update-nodejs-versions`
Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
branch: update-nodejs-versions

0 comments on commit 4ab8252

Please sign in to comment.