Skip to content

Commit ae9c83d

Browse files
author
Petr Sramek
committed
now
1 parent 35027e7 commit ae9c83d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

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

0 commit comments

Comments
 (0)