Skip to content

Commit b5619bf

Browse files
author
Petr Sramek
committed
what now
1 parent 6dcb072 commit b5619bf

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,15 +47,18 @@ jobs:
4747
run: |
4848
set +e
4949
git diff --quiet --exit-code --cached
50-
echo has-changes="$?" >> $GITHUB_OUTPUT
50+
exitcode="$?"
51+
echo "has-changes=$exitcode" >> $GITHUB_OUTPUT
5152
set -e
5253
working-directory: ${{ github.workspace }}
5354
- name: Push to ${{ github.ref }}
54-
if: ${{ fromJSON(steps.validate.outputs.has-changes) == 1 }}
55+
# if: ${{ fromJSON(steps.validate.outputs.has-changes) == 1 }}
5556
run: |
5657
echo ${{ steps.validate.outputs.has-changes }}
58+
echo ${{ steps.validate.outputs.has-changes == '1' }}
5759
echo ${{ fromJSON(steps.validate.outputs.has-changes) }}
5860
echo ${{ fromJSON(steps.validate.outputs.has-changes) == 1 }}
61+
echo ${{ fromJSON(steps.validate.outputs.has-changes) == '1' }}
5962
git add .
6063
git config user.name "$(git log -n 1 --pretty=format:%an)"
6164
git config user.email "$(git log -n 1 --pretty=format:%ae)"

0 commit comments

Comments
 (0)