Skip to content

Commit c1cc0d2

Browse files
committed
Simplify GitHub Actions workflow with standard output syntax
1 parent f847974 commit c1cc0d2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/loc-update.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,9 @@ jobs:
4242

4343
- name: Check Staged Changes
4444
id: git-check
45-
shell: cmd
4645
run: |
47-
git diff --staged --quiet
48-
if %errorlevel% neq 0 (
49-
echo changes=true>> %GITHUB_OUTPUT%
50-
) else (
51-
echo changes=false>> %GITHUB_OUTPUT%
52-
)
53-
46+
git diff --staged --quiet || echo "::set-output name=changes::true"
47+
5448
- name: Commit and Push Changes
5549
if: steps.git-check.outputs.changes == 'true'
5650
run: |

0 commit comments

Comments
 (0)