From 9e69b6b676ec0189786834d4bac381b56435adc7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Thu, 19 Nov 2020 18:40:48 +0000 Subject: [PATCH] fix(ci): use correct version --- .github/workflows/maintenance.yml | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/.github/workflows/maintenance.yml b/.github/workflows/maintenance.yml index 439eebf56..ca14f8d07 100644 --- a/.github/workflows/maintenance.yml +++ b/.github/workflows/maintenance.yml @@ -2,7 +2,7 @@ name: Maintenance on: schedule: - - cron: "15 18 * * 4" + - cron: "10 19 * * 4" jobs: npm-upgrades: @@ -20,24 +20,17 @@ jobs: - name: Regenerate package-lock.json run: make -C ui npm-upgrade - - name: Commit changes - run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" - git commit -m "chore(ui): upgrade all 3rd party dependencies" - - - name: Push changes - uses: ad-m/github-push-action@master + - name: Create Pull Request + id: cpr + uses: peter-evans/create-pull-request@v3.5.0 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + author: "Ɓukasz Mierzwa " + commit-message: "chore(ui): upgrade all 3rd party dependencies" branch: npm-upgrades - - - name: Initialize Pull Request - uses: gha-utilities/init-pull-request@v0.2.0 - with: - verbose: true - pull_request_token: ${{ secrets.GITHUB_TOKEN }} - head: npm-upgrades - base: master + delete-branch: true title: "chore(ui): upgrade all 3rd party dependencies" - body: "Automated package-lock.json update" + + - name: Check outputs + run: | + echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}" + echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"