From d314c02a138a4a0b85569e2cfef50b77ecffa2e3 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed, 7 Oct 2020 23:53:05 +0800 Subject: [PATCH] Drop the deprecating command `set-env` in actions workflow. replace with environment files --- .github/workflows/pages-deploy.yml.hook | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pages-deploy.yml.hook b/.github/workflows/pages-deploy.yml.hook index c918595..e84439f 100644 --- a/.github/workflows/pages-deploy.yml.hook +++ b/.github/workflows/pages-deploy.yml.hook @@ -10,6 +10,7 @@ on: jobs: continuous-delivery: + runs-on: ubuntu-latest env: @@ -59,7 +60,7 @@ jobs: run: | baseurl="$(grep '^baseurl:' _config.yml | yq r - baseurl)" if [[ -n $baseurl ]]; then - echo "::set-env name=SPEC_TEST::_site_no_baseurl" + echo "SPEC_TEST=_site_no_baseurl" >> $GITHUB_ENV fi - name: Build Site