mirror of
https://github.com/exo-explore/exo.git
synced 2026-01-19 11:28:51 -05:00
Co-authored-by: Alex Cheema <alexcheema123@gmail.com> Co-authored-by: Seth Howes <sethshowes@gmail.com> Co-authored-by: Matt Beton <matthew.beton@gmail.com> Co-authored-by: Andrei Cravtov <the.andrei.cravtov@gmail.com>
17 lines
340 B
YAML
17 lines
340 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 }}"
|