github: replace npm-update workflow with dependabot

https://docs.github.com/en/code-security/dependabot/working-with-dependabot
This commit is contained in:
Katerina Koukiou 2022-02-10 15:36:09 +01:00 committed by Martin Pitt
parent dfff5fc364
commit 558703a24b
3 changed files with 19 additions and 60 deletions

19
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
groups:
eslint:
patterns:
- "eslint*"
esbuild:
patterns:
- "esbuild*"
stylelint:
patterns:
- "stylelint*"
patternfly:
patterns:
- "@patternfly*"

View file

@ -1,30 +0,0 @@
name: npm-update-pf
on:
schedule:
- cron: '0 2 * * 1'
# can be run manually on https://github.com/cockpit-project/starter-kit/actions
workflow_dispatch:
jobs:
npm-update:
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
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

View file

@ -1,30 +0,0 @@
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
permissions:
pull-requests: write
contents: write
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