From: Johannes Schindelin Date: Sat, 7 Nov 2020 01:21:45 +0000 (+0000) Subject: ci: avoid using the deprecated `set-env` construct X-Git-Tag: v2.30.0-rc0~92^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=cac42e47;p=thirdparty%2Fgit.git ci: avoid using the deprecated `set-env` construct The `set-env` construct was deprecated as of the announcement in https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ Let's use the recommended alternative instead. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/.github/workflows/check-whitespace.yml b/.github/workflows/check-whitespace.yml index 9d070b9cdf..c74b47de9e 100644 --- a/.github/workflows/check-whitespace.yml +++ b/.github/workflows/check-whitespace.yml @@ -14,7 +14,7 @@ jobs: steps: - name: Set commit count shell: bash - run: echo "::set-env name=COMMIT_DEPTH::$((1+$COMMITS))" + run: echo "COMMIT_DEPTH=$((1+$COMMITS))" >>$GITHUB_ENV env: COMMITS: ${{ github.event.pull_request.commits }}