Drop the deprecating command set-env in actions workflow.

replace with environment files
This commit is contained in:
Cotes Chung 2020-10-07 23:53:05 +08:00
parent ea5b6cf1f6
commit d314c02a13

View file

@ -10,6 +10,7 @@ on:
jobs: jobs:
continuous-delivery: continuous-delivery:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: env:
@ -59,7 +60,7 @@ jobs:
run: | run: |
baseurl="$(grep '^baseurl:' _config.yml | yq r - baseurl)" baseurl="$(grep '^baseurl:' _config.yml | yq r - baseurl)"
if [[ -n $baseurl ]]; then if [[ -n $baseurl ]]; then
echo "::set-env name=SPEC_TEST::_site_no_baseurl" echo "SPEC_TEST=_site_no_baseurl" >> $GITHUB_ENV
fi fi
- name: Build Site - name: Build Site