From cee3a01db8fd99e3867c920c8db45435b749f361 Mon Sep 17 00:00:00 2001 From: Adam Rensel Date: Mon, 10 May 2021 23:36:46 -0400 Subject: [PATCH] Zzz --- .github/workflows/main.yml | 29 ++++++++++++++--------------- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index af550715..f9df9d66 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -20,20 +20,6 @@ jobs: working-directory: ./.github/workflows/src name: Getting grades steps: - - name: Get Minute - id: get-minute - run: | - echo "::set-output name=minute::$(date -u '+%M')" - shell: bash # For Windows, Linux and macOS default to bash alrea - - name: Cache data - id: cache-data - uses: actions/cache@v2 - with: - path: .github/workflows/src/app/data - key: ${{ runner.OS }}-${{ steps.get-minute.outputs.minute }} # cache for 1 minute - - name: Cache Airtable - if: steps.cache-data.outputs.cache-hit != 'true' - run: node app/fetch-data.js - uses: actions/checkout@v2 - name: Setup node uses: actions/setup-node@v2 @@ -46,10 +32,23 @@ jobs: path: node_modules key: ${{ runner.os }}-${{ hashFiles('package.json') }} - name: Setup npm - if: steps.cache-modules.outputs.cache-hit != 'true' run: npm install -g npm - name: Install dependencies + if: steps.cache-modules.outputs.cache-hit != 'true' run: npm install + - name: Get Minute + id: get-minute + run: echo "::set-output name=minute::$(date -u '+%M')" + shell: bash # For Windows, Linux and macOS default to bash alrea + - name: Cache data + id: cache-data + uses: actions/cache@v2 + with: + path: .github/workflows/src/app/data + key: ${{ runner.OS }}-${{ steps.get-minute.outputs.minute }} # cache for 1 minute + - name: Cache Airtable + if: steps.cache-data.outputs.cache-hit != 'true' + run: node app/fetch-data.js - name: run entry point run: node index.js env: -- knotmirror 0.0.1