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