-
-
Notifications
You must be signed in to change notification settings - Fork 20
33 lines (30 loc) · 1.24 KB
/
check-revealjs-updates.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Check updates of reveal.js
on:
schedule:
- cron: '30 0 * * *'
workflow_dispatch:
jobs:
update-revealjs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Try update package.json
id: checked
run: |
version=`jq < npm-shrinkwrap.json '.packages."node_modules/reveal.js".version' -r`
echo "::set-output name=revealjs_current::${version}"
npm i
npm update -S
version=`jq < npm-shrinkwrap.json '.packages."node_modules/reveal.js".version' -r`
echo "::set-output name=revealjs_updated::${version}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
token: ${{ secrets.GH_PAT }}
branch: update/revealjs-${{ steps.checked.outputs.revealjs_updated }}
commit-message: "build(deps): Use latest Reveal.js"
title: "Update reveal.js from v${{ steps.checked.outputs.revealjs_current }} to ${{ steps.checked.outputs.revealjs_updated }}"
delete-branch: true
body: |
Please see [changelog of reveal.js](https://github.com/hakimel/reveal.js/releases/tag/${{ steps.checked.outputs.revealjs_updated}})
Auto-generated by GitHub Actions