starter-kit/.github/workflows/npm-update.yml
Matej Marusak e91487b558 workflows: Split npm-update to PF and non PF tasks
Run PF update every Monday and anything else try to update on Tue, Thu and Sat.
2022-04-13 10:39:32 +02:00

27 lines
742 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-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 ~@patternfly