From 37b79ae64779577e204489aa1264c9bd1e6c4aeb Mon Sep 17 00:00:00 2001 From: Netanel Rabinowitz Date: Sun, 4 Dec 2022 20:26:52 +0200 Subject: [PATCH] Update examples.md make all examples that involves `echo ... >> $GITHUB_OUTPUT` work on windows by adding a `shell: bash` to the step --- examples.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/examples.md b/examples.md index 56bfa9a..29dd9cf 100644 --- a/examples.md +++ b/examples.md @@ -315,6 +315,7 @@ If using `npm config` to retrieve the cache directory, ensure you run [actions/s ```yaml - name: Get npm cache directory id: npm-cache-dir + shell: bash run: | echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 @@ -342,6 +343,7 @@ The yarn cache directory will depend on your operating system and version of `ya ```yaml - name: Get yarn cache directory path id: yarn-cache-dir-path + shell: bash run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 @@ -360,6 +362,7 @@ The yarn 2 cache directory will depend on your config. See https://yarnpkg.com/c ```yaml - name: Get yarn cache directory path id: yarn-cache-dir-path + shell: bash run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 @@ -404,6 +407,7 @@ Esy allows you to export built dependencies and import pre-built dependencies. ```yaml - name: Get Composer Cache Directory id: composer-cache + shell: bash run: | echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 @@ -496,6 +500,7 @@ jobs: ```yaml - name: Get pip cache dir id: pip-cache + shell: bash run: | echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT