Skip to content

Commit 272fd31

Browse files
committed
fix: add a commit step
1 parent 344a3f8 commit 272fd31

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/update-dumps.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,15 @@ jobs:
414414
fi
415415
done
416416
rm -rf artifacts/
417-
417+
- name: Commit changes
418+
id: commit
419+
run: |
420+
if git diff --cached --exit-code; then
421+
echo "changed=false" >> $GITHUB_OUTPUT
422+
else
423+
git commit -m "Update cache dumps to version ${{ inputs.cache_version }}"
424+
echo "changed=true" >> $GITHUB_OUTPUT
425+
fi
418426
- name: Create Pull Request if changes
419427
if: steps.commit.outputs.changed == 'true'
420428
env:

0 commit comments

Comments
 (0)