first commit
This commit is contained in:
16
development/check-git-repository.yaml
Normal file
16
development/check-git-repository.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
# yaml-language-server: $schema=https://git.jesof.ch/public/mstr-schemas/raw/branch/main/mstr-tasks-schema.json
|
||||
tasks:
|
||||
- execute:
|
||||
description: "Git Check For Changes"
|
||||
exec: "git"
|
||||
dir: "."
|
||||
args:
|
||||
- "status"
|
||||
- "--porcelain"
|
||||
response:
|
||||
name: "gitChanges"
|
||||
|
||||
- throw:
|
||||
description: "Check if repository is clean"
|
||||
message: "Git repository not clean, please commit changes ..."
|
||||
when: $(gitChanges != "")
|
||||
Reference in New Issue
Block a user