Skip to content

Commit 35027e7

Browse files
author
Petr Sramek
committed
azsfa
1 parent eb230b0 commit 35027e7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,13 @@ jobs:
4747
run: |
4848
set +e
4949
git diff --quiet --exit-code --cached
50-
echo has-changes="$?" >> $GITHUB_OUTPUT
50+
echo has-changes=$(1 == $?) >> $GITHUB_OUTPUT
5151
set -e
5252
working-directory: ${{ github.workspace }}
5353
- name: Push to ${{ github.ref }}
54-
if: ${{ fromJSON(steps.git.outputs.has-changes) }}
54+
if: ${{ steps.git.outputs.has-changes }}
5555
run: |
56+
echo ${{ steps.git.outputs.has-changes }}
5657
git add .
5758
git config user.name "$(git log -n 1 --pretty=format:%an)"
5859
git config user.email "$(git log -n 1 --pretty=format:%ae)"

0 commit comments

Comments
 (0)