mirror of
https://github.com/exo-explore/exo.git
synced 2025-12-23 22:27:50 -05:00
16 lines
339 B
YAML
16 lines
339 B
YAML
name: Commit if changed
|
|
description: "Create a commit when the working tree is dirty"
|
|
|
|
inputs:
|
|
message:
|
|
description: "Commit message"
|
|
required: true
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Commit changed files
|
|
shell: bash
|
|
run: |
|
|
git diff --quiet && exit 0
|
|
git commit -am "${{ inputs.message }}" |