From 59a5481c7da7f4ed867e1486c658dee3a7af826a Mon Sep 17 00:00:00 2001 From: Alif Rachmawadi Date: Thu, 6 Jan 2022 10:46:35 +0000 Subject: [PATCH] fix PUB_CACHE env --- .github/workflows/workflow.yml | 4 ++-- setup.sh | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 58667b2..7e23033 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -16,9 +16,9 @@ jobs: - name: Print FLUTTER_ROOT shell: bash run: echo "FLUTTER_ROOT set to $FLUTTER_ROOT" - - name: Print PUBCACHE + - name: Print PUB_CACHE shell: bash - run: echo "PUBCACHE set to $PUBCACHE" + run: echo "PUB_CACHE set to $PUB_CACHE" - name: Run dart --version shell: bash run: dart --version diff --git a/setup.sh b/setup.sh index 150c927..23a560c 100755 --- a/setup.sh +++ b/setup.sh @@ -80,15 +80,15 @@ fi if [[ $OS_NAME == windows ]]; then FLUTTER_ROOT="${RUNNER_TOOL_CACHE}\\flutter" - PUBCACHE="${USERPROFILE}\\.pub-cache" + PUB_CACHE="${USERPROFILE}\\.pub-cache" else FLUTTER_ROOT="${RUNNER_TOOL_CACHE}/flutter" - PUBCACHE="${HOME}/.pub-cache" + PUB_CACHE="${HOME}/.pub-cache" fi echo "FLUTTER_ROOT=${FLUTTER_ROOT}" >>$GITHUB_ENV -echo "PUB_CACHE=${PUBCACHE}" >>$GITHUB_ENV +echo "PUB_CACHE=${PUB_CACHE}" >>$GITHUB_ENV echo "${FLUTTER_ROOT}/bin" >>$GITHUB_PATH echo "${FLUTTER_ROOT}/bin/cache/dart-sdk/bin" >>$GITHUB_PATH -echo "${PUBCACHE}/bin" >>$GITHUB_PATH +echo "${PUB_CACHE}/bin" >>$GITHUB_PATH