File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 53
53
run : |
54
54
npm run codestyle
55
55
56
+ - name : 🚦 Check for changes before committing
57
+ id : check_changes
58
+ run : |
59
+ if [[ -z "$(git status --porcelain)" ]]; then
60
+ echo "No changes to commit. Skipping auto-commit step."
61
+ echo "changes_detected=false" >> $GITHUB_ENV
62
+ else
63
+ echo "Changes detected. Proceeding to auto-commit step."
64
+ echo "changes_detected=true" >> $GITHUB_ENV
65
+
56
66
- name : 🚘 Auto commit
57
- if : env.stylelint_update == 'true' || env.prettier_update == 'true'
67
+ if : steps.check_changes.outputs.changes_detected == 'true' && ( env.stylelint_update == 'true' || env.prettier_update == 'true')
58
68
uses : ./.github/actions/auto-commit
59
69
with :
60
70
branch-name : " ${{ github.head_ref }}-auto"
You can’t perform that action at this time.
0 commit comments