File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -145,13 +145,16 @@ jobs:
145
145
name : compiled
146
146
path : compiled/
147
147
- run : git status -u
148
- - name : Abort if only REVISION file changed
148
+ - name : Check if only the REVISION file has changed
149
+ id : check_should_commit
149
150
run : |
150
- if [[ $(git status -u --porcelain | wc -l) -eq 1 && $(git status -u --porcelain | grep REVISION) ]]; then
151
- echo "Only REVISION file changed. Aborting."
152
- circleci-agent step halt
151
+ if git status --porcelain | grep -qv '/REVISION$'; then
152
+ echo "should_commit=true" >> "$GITHUB_OUTPUT"
153
+ else
154
+ echo "should_commit=false" >> "$GITHUB_OUTPUT"
153
155
fi
154
156
- name : Commit changes to branch
157
+ if : steps.check_should_commit.outputs.should_commit == 'true'
155
158
uses : stefanzweifel/git-auto-commit-action@v4
156
159
with :
157
160
commit_message : |
You can’t perform that action at this time.
0 commit comments