]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ci: avoid using the deprecated `set-env` construct
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Sat, 7 Nov 2020 01:21:45 +0000 (01:21 +0000)
committerJunio C Hamano <gitster@pobox.com>
Sat, 7 Nov 2020 06:06:13 +0000 (22:06 -0800)
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>
.github/workflows/check-whitespace.yml

index 9d070b9cdff286770d99dd24da65b7af87aa53f4..c74b47de9e27e0d0b3c9b112344e140eb85d6798 100644 (file)
@@ -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 }}