From 1d7af811cd7ed7f6e977f4832e99d30d4a07d118 Mon Sep 17 00:00:00 2001 From: Nicolas MASSART Date: Fri, 15 Oct 2021 19:53:55 +0200 Subject: [PATCH] optimise env vars --- actions/build/action.yml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/actions/build/action.yml b/actions/build/action.yml index a6c344f..0cacd83 100644 --- a/actions/build/action.yml +++ b/actions/build/action.yml @@ -16,22 +16,14 @@ runs: uses: c-py/action-dotenv-to-setenv@a6380f4d905f42adb7c065db63e6d66d75b971ad #v3 with: env-file: '.env' - - name: Set SITE_URL env vars - shell: sh - run: | - echo "SITE_URL=${{ inputs.SITE_URL }}" >> $GITHUB_ENV - echo "VERSION=${{ inputs.VERSION }}" >> $GITHUB_ENV - echo "DOCTOOLS_IMAGE_VERSION=${DOCTOOLS_IMAGE_VERSION:=latest}" >> $GITHUB_ENV - name: Build doc site shell: sh run: | + SITE_URL=${{ inputs.SITE_URL }} + VERSION=${{ inputs.VERSION }} docker run --rm \ --env-file ./.env \ -v ${PWD}:/workspace/ \ -w /workspace/ \ - ghcr.io/consensys/doctools-builder:latest \ + ghcr.io/consensys/doctools-builder:${DOCTOOLS_IMAGE_VERSION:=latest} \ build -s -# uses: docker://ghcr.io/consensys/doctools-builder:${{ env.DOCTOOLS_IMAGE_VERSION }} -# uses: docker://ghcr.io/consensys/doctools-builder:latest -# with: -# args: "build -s"