Skip to content

Commit 4ab8252

Browse files
mattinsleralexeagle
authored andcommitted
fix(update-nodejs-versions): Fix NodeJS version for running GitHub Action
1 parent b53e31c commit 4ab8252

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# See https://github.com/marketplace/actions/github-action-for-yarn
2-
31
name: Update NodeJS Versions
42

53
on:
64
schedule:
7-
# run at 01:30 UTC daily
8-
- cron: "30 1 * * *"
5+
# run at 01:30 UTC daily
6+
- cron: '30 1 * * *'
97

108
jobs:
119
updateNodejsVersions:
@@ -15,23 +13,26 @@ jobs:
1513
- name: Git Checkout
1614
uses: actions/checkout@v2
1715
with:
18-
fetch-depth:
16+
fetch-depth: 0
1917

20-
- name: Run yarn update-nodejs-versions
21-
uses: borales/actions-yarn@v2.0.0
18+
- name: Setup NodeJS
19+
uses: actions/setup-node@v2
2220
with:
23-
cmd: update-nodejs-versions
21+
node-version: '14.x'
22+
23+
- name: Run yarn update-nodejs-versions
24+
run: yarn run update-nodejs-versions
2425

2526
- name: Create Pull Request
2627
uses: peter-evans/create-pull-request@v3
2728
with:
28-
token: ${{ secrets.PAT }}
29-
commit-message: Update NodeJS Versions
30-
title: Update NodeJS Versions
31-
body: |
32-
- Updated NodeJS Versions using `yarn update-nodejs-versions`
33-
34-
Auto-generated by [create-pull-request][1]
35-
36-
[1]: https://github.com/peter-evans/create-pull-request
37-
branch: update-nodejs-versions
29+
token: ${{ secrets.PAT }}
30+
commit-message: Update NodeJS Versions
31+
title: Update NodeJS Versions
32+
body: |
33+
- Updated NodeJS Versions using `yarn run update-nodejs-versions`
34+
35+
Auto-generated by [create-pull-request][1]
36+
37+
[1]: https://github.com/peter-evans/create-pull-request
38+
branch: update-nodejs-versions

0 commit comments

Comments
 (0)