Skip to content

Commit

Permalink
Merge a44153f into f10591e
Browse files Browse the repository at this point in the history
  • Loading branch information
Enteee committed Jun 29, 2020
2 parents f10591e + a44153f commit 9d45507
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Update
name: Node.js Update

on:
schedule:
- cron: 0 0 * * 3
- cron: 0 0 * * *

jobs:
build:
Expand All @@ -22,16 +22,27 @@ jobs:

- run: npm install -g npm-check-updates

- name: Updaet packages
- name: Update packages
id: update
run: echo "##[set-output name=ncu;]$(ncu -u)"
run: |
report="$(ncu -u)"
report="\`\`\`
${report}
\`\`\`"
report="${report//'%'/'%25'}"
report="${report//$'\n'/'%0A'}"
report="${report//$'\r'/'%0D'}"
echo "::set-output name=ncu::${report}"
- run: npm update --save-dev

- run: npm update

- name: Create Pull Request
uses: peter-evans/create-pull-request@v2
with:
commit-message: "Update dependencies"
title: "Update dependencies"
body: ${{ steps.update.outputs.ncu }}
branch: feature/update-dependencies
token: ${{ secrets.PR_CREATE_TOKEN }}

0 comments on commit 9d45507

Please sign in to comment.