Skip to content

Commit 3301e62

Browse files
committed
chore: Refactor compile_code_and_modules.yml workflow to check for changes before committing
1 parent eca5bf8 commit 3301e62

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/compile_code_and_modules.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ jobs:
2525
- name: Build
2626
run: npm run build
2727

28-
- name: commit changes
28+
- name: Check for changes
29+
id: git-check
30+
run: |
31+
git diff --quiet || echo "::set-output name=changes::true"
32+
33+
- name: Commit changes
34+
if: steps.git-check.outputs.changes == 'true'
2935
run: |
3036
git config --global user.email "github-actions[bot]@users.noreply.github.com"
3137
git config --global user.name "github-actions[bot]"

0 commit comments

Comments
 (0)