From 392433edcf02a0c12c11a30174e1aacdff83162c Mon Sep 17 00:00:00 2001 From: Aleksandr Statciuk Date: Mon, 8 Nov 2021 16:18:11 +0300 Subject: [PATCH] Update auto-update.yml --- .github/workflows/auto-update.yml | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/auto-update.yml b/.github/workflows/auto-update.yml index 8352098f..b22d7148 100644 --- a/.github/workflows/auto-update.yml +++ b/.github/workflows/auto-update.yml @@ -4,7 +4,7 @@ on: schedule: - cron: '0 0 * * *' jobs: - delete-branch: + delete-old-branch: runs-on: ubuntu-latest steps: - name: Checkout @@ -18,7 +18,7 @@ jobs: branches: 'bot/auto-update' create-branch: runs-on: ubuntu-latest - needs: delete-branch + needs: delete-old-branch steps: - name: Checkout uses: actions/checkout@v2 @@ -40,6 +40,11 @@ jobs: uses: actions/checkout@v2 with: ref: bot/auto-update + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' - name: Install Dependencies run: npm install - name: Create Matrix @@ -57,7 +62,7 @@ jobs: uses: actions/checkout@v2 with: ref: bot/auto-update - - name: Setup node + - name: Setup Node uses: actions/setup-node@v2 with: node-version: '14' @@ -110,6 +115,11 @@ jobs: ref: bot/auto-update - name: Download Artifacts uses: actions/download-artifact@v2 + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' - name: Install Dependencies run: npm install - name: Update Codes @@ -141,6 +151,11 @@ jobs: ref: bot/auto-update - name: Download Artifacts uses: actions/download-artifact@v2 + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '14' + cache: 'npm' - name: Install Dependencies run: npm install - name: Update README.md