starter-kit/.github/workflows/npm-update.yml
Martin Pitt 3dbd37a8c3
workflows: Move npm-update to Ubuntu 20.04
GitHub's 18.04 additional repositories break NPM. As "ubuntu-latest" is
going to switch to 20.04 soon anyway [1], do the jump now.

[1] https://github.com/actions/virtual-environments/issues/1816

Closes #409
2020-12-28 16:17:11 +01:00

27 lines
725 B
YAML

name: npm-update
on:
schedule:
- cron: '0 2 * * *'
# can be run manually on https://github.com/cockpit-project/starter-kit/actions
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: |
make bots
bots/npm-update