From 12f6ddcda8d4c43451046fce39727d838e11ccf3 Mon Sep 17 00:00:00 2001 From: smoench Date: Tue, 25 Feb 2020 15:08:46 +0100 Subject: [PATCH] cache doctor rst --- .github/workflows/ci.yaml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index d61b084f1e5..18dad91be74 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -52,7 +52,20 @@ jobs: - name: "Checkout" uses: actions/checkout@v2 + - name: "Create cache dir" + run: mkdir .cache + + - name: "Extract base branch name" + run: echo "##[set-output name=branch;]$(echo ${GITHUB_BASE_REF:=${GITHUB_REF##*/}})" + id: extract_base_branch + + - name: "Cache DOCtor-RST" + uses: actions/cache@v1 + with: + path: .cache + key: ${{ runner.os }}-doctor-rst-${{ steps.extract_base_branch.outputs.branch }} + - name: "Run DOCtor-RST" uses: docker://oskarstark/doctor-rst with: - args: --short + args: --short --cache-file=/github/workspace/.cache/doctor-rst.cache