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.
This commit is contained in:
parent
b1fb98b436
commit
e91487b558
2 changed files with 29 additions and 2 deletions
27
.github/workflows/npm-update-pf.yml
vendored
Normal file
27
.github/workflows/npm-update-pf.yml
vendored
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
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-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
|
||||||
4
.github/workflows/npm-update.yml
vendored
4
.github/workflows/npm-update.yml
vendored
|
|
@ -1,7 +1,7 @@
|
||||||
name: npm-update
|
name: npm-update
|
||||||
on:
|
on:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * *'
|
- cron: '0 2 * * 2,4,6'
|
||||||
# can be run manually on https://github.com/cockpit-project/starter-kit/actions
|
# can be run manually on https://github.com/cockpit-project/starter-kit/actions
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
jobs:
|
jobs:
|
||||||
|
|
@ -24,4 +24,4 @@ jobs:
|
||||||
- name: Run npm-update bot
|
- name: Run npm-update bot
|
||||||
run: |
|
run: |
|
||||||
make bots
|
make bots
|
||||||
bots/npm-update
|
bots/npm-update ~@patternfly
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue