Skip to content

Commit 52d0131

Browse files
author
Petr Sramek
committed
test
1 parent 27b7232 commit 52d0131

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/format-cs-files.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ jobs:
5353
dotnet format analyzers --diagnostics IDE0073 --verbosity diagnostic
5454
working-directory: ${{ github.workspace }}
5555
- name: Validate with .NET ${{ vars.DOTNET_SDK_VERSION }}
56+
env:
57+
result: false
5658
run: |
57-
git diff --quiet --exit-code --cached
58-
echo $?
59-
echo 'has-changes=${{ $? }}' >> $GITHUB_OUTPUT
59+
result='git diff --quiet --exit-code --cached'
60+
echo $result
61+
echo has-changes=$result >> $GITHUB_OUTPUT
6062
echo ${{ steps.validate.output.has-changes }}
6163
id: validate
6264
continue-on-error: true

0 commit comments

Comments
 (0)