Skip to content

Commit cac42e4

Browse files
dschogitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7f7ebe0 commit cac42e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/check-whitespace.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
steps:
1515
- name: Set commit count
1616
shell: bash
17-
run: echo "::set-env name=COMMIT_DEPTH::$((1+$COMMITS))"
17+
run: echo "COMMIT_DEPTH=$((1+$COMMITS))" >>$GITHUB_ENV
1818
env:
1919
COMMITS: ${{ github.event.pull_request.commits }}
2020

0 commit comments

Comments
 (0)