Skip to content

Commit e171514

Browse files
committed
actually use GitHub Actions...
1 parent 4b27436 commit e171514

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/commit_artifacts.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,16 @@ jobs:
145145
name: compiled
146146
path: compiled/
147147
- 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
149150
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"
153155
fi
154156
- name: Commit changes to branch
157+
if: steps.check_should_commit.outputs.should_commit == 'true'
155158
uses: stefanzweifel/git-auto-commit-action@v4
156159
with:
157160
commit_message: |

0 commit comments

Comments
 (0)