summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2020-11-07 01:21:45 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-11-07 06:06:13 (GMT)
commitcac42e471afae5b1af4f0745388981675b920d91 (patch)
tree136e6e90e8cb987c4abda1c95318822c91528f7f /.github
parent7f7ebe054af6d831b999d6c2241b9227c4e4e08d (diff)
downloadgit-cac42e471afae5b1af4f0745388981675b920d91.zip
git-cac42e471afae5b1af4f0745388981675b920d91.tar.gz
git-cac42e471afae5b1af4f0745388981675b920d91.tar.bz2
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.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.github/workflows/check-whitespace.yml b/.github/workflows/check-whitespace.yml
index 9d070b9..c74b47d 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 }}