diff options
author | Johannes Schindelin <johannes.schindelin@gmx.de> | 2020-11-07 04:21:45 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-11-07 09:06:13 +0300 |
commit | cac42e471afae5b1af4f0745388981675b920d91 (patch) | |
tree | 136e6e90e8cb987c4abda1c95318822c91528f7f /.github | |
parent | 7f7ebe054af6d831b999d6c2241b9227c4e4e08d (diff) |
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 <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/check-whitespace.yml | 2 |
1 files changed, 1 insertions, 1 deletions
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 }} |