diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index cd78ca50..06bd3c8f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,4 +1,4 @@ -name: CI +name: Lint on: workflow_dispatch: @@ -31,11 +31,12 @@ jobs: node-version: '12' - name: Set Variables id: set_variables + shell: bash run: | - echo "::set-output name=PY::$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" - echo "::set-output name=PIP_CACHE::$(pip cache dir)" - - name: Cache PIP - uses: actions/cache@v2 + echo "PY=$(python -c 'import hashlib, sys;print(hashlib.sha256(sys.version.encode()+sys.executable.encode()).hexdigest())')" >> $GITHUB_OUTPUT + echo "PIP_CACHE=$(pip cache dir)" >> $GITHUB_OUTPUT + - name: Cache dependencies + uses: actions/cache@v3 with: path: ${{ steps.set_variables.outputs.PIP_CACHE }} key: ${{ runner.os }}-pip-${{ steps.set_variables.outputs.PY }}