github: Add npm-update action

This commit is contained in:
Sanne Raymaekers 2020-10-27 17:10:39 +01:00
parent ea09205a27
commit 7c4efebff8
3 changed files with 42 additions and 0 deletions

24
.github/npm-update.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: npm-update
on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
npm-update:
runs-on: ubuntu-latest
steps:
- name: Set up dependencies
run: sudo apt-get install -y npm make
- name: Set up configuration and secrets
run: |
printf '[user]\n\tname = Cockpit Project\n\temail=cockpituous@gmail.com\n' > ~/.gitconfig
echo '${{ secrets.GITHUB_TOKEN }}' > ~/.config/github-token
- name: Clone repository
uses: actions/checkout@v2
- name: Run npm-update bot
run: |
tools/make-bots
bots/npm-update