From e563628aa12e7c0be6d0b6ee0106c20dc18f969c Mon Sep 17 00:00:00 2001 From: "Michael Bradley, Jr" Date: Mon, 26 Sep 2022 00:19:35 -0500 Subject: [PATCH] [wip] remove unnecessary double-quotes from cache key component --- .github/workflows/testground.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/testground.yml b/.github/workflows/testground.yml index ea21c283..8f411fd7 100644 --- a/.github/workflows/testground.yml +++ b/.github/workflows/testground.yml @@ -1,7 +1,7 @@ # Adapted from: # https://github.com/status-im/nim-codex/blob/main/.github/workflows/ci.yml -# remove me next +# remove me next 2 (stripped double-quotes from string returned by `docker manifest inspect ...` name: Testground on: @@ -11,8 +11,6 @@ on: pull_request: workflow_dispatch: -# expect failure because docker images aren't cached across runs for the Testground GHA workflow - jobs: build: strategy: @@ -64,9 +62,9 @@ jobs: - name: Calculate cache-key components id: calc-cache-key-components run: | - cd ../testground echo "::set-output name=hash::$(git rev-parse $(git branch --show-current))" - echo "::set-output name=digest::$(docker manifest inspect nimlang/nim:latest | jq '.config.digest')" + echo "::set-output name=digest::$(docker manifest inspect nimlang/nim:latest | jq '.config.digest' | awk -F'"' '{ print $2}')" + working-directory: testground - name: Restore Testground executable from cache id: testground-exe-cache