starter-kit/.github/workflows/npm-update.yml
Martin Pitt 3bc60dd9bb workflows: Run on ubuntu-latest
That is Ubuntu 22.04 now. Avoid letting this get out of date.

Taken from eb2b320c95
2023-04-20 11:05:15 +02:00

27 lines
743 B
YAML

name: npm-update
on:
schedule:
- cron: '0 2 * * 2,4,6'
# can be run manually on https://github.com/cockpit-project/starter-kit/actions
workflow_dispatch:
jobs:
npm-update:
runs-on: ubuntu-latest
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@v3
- name: Run npm-update bot
run: |
make bots
bots/npm-update ~@patternfly