debian-image-builder-frontend/.github/workflows/npm-update.yml
2021-07-15 15:36:22 +01:00

26 lines
649 B
YAML

name: npm-update
on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:
jobs:
npm-update:
runs-on: ubuntu-20.04
steps:
- name: Set up dependencies
run: |
sudo apt update
sudo apt 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