Skip to content

Commit 9dec9c1

Browse files
committed
allow to run scripts before commiting the files
1 parent 9d1effd commit 9dec9c1

File tree

5 files changed

+158
-127
lines changed

5 files changed

+158
-127
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,7 @@ jobs:
7070
```
7171

7272
> The created commit will still appear as `github-actions-bot`, but this time it will run CI ;)
73+
74+
### Inputs
75+
76+
You may also set `preCommit` configuration with a custom script, if you wish to run a script before committing the actual files. This is useful if you want to run custom liting/prettier workflows.

action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ description: A GitHub action to automate Changesets creation based on dependenci
33
runs:
44
using: "node16"
55
main: "dist/index.js"
6+
inputs:
7+
preCommit:
8+
description: "A script to run before committing the changesets files"
9+
required: false
610
branding:
711
icon: "package"
812
color: "blue"

0 commit comments

Comments
 (0)