From e91487b5582357c46a3c14972b54b236f71c7b78 Mon Sep 17 00:00:00 2001 From: Matej Marusak Date: Wed, 13 Apr 2022 09:51:05 +0200 Subject: [PATCH] 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. --- .github/workflows/npm-update-pf.yml | 27 +++++++++++++++++++++++++++ .github/workflows/npm-update.yml | 4 ++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/npm-update-pf.yml diff --git a/.github/workflows/npm-update-pf.yml b/.github/workflows/npm-update-pf.yml new file mode 100644 index 0000000..9313874 --- /dev/null +++ b/.github/workflows/npm-update-pf.yml @@ -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 diff --git a/.github/workflows/npm-update.yml b/.github/workflows/npm-update.yml index c3b45f5..1f169b0 100644 --- a/.github/workflows/npm-update.yml +++ b/.github/workflows/npm-update.yml @@ -1,7 +1,7 @@ name: npm-update on: schedule: - - cron: '0 2 * * *' + - cron: '0 2 * * 2,4,6' # can be run manually on https://github.com/cockpit-project/starter-kit/actions workflow_dispatch: jobs: @@ -24,4 +24,4 @@ jobs: - name: Run npm-update bot run: | make bots - bots/npm-update + bots/npm-update ~@patternfly