Skip to content

Commit 479b20f

Browse files
authored
docs: update common issues
1 parent 8c75f4a commit 479b20f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

docs/common-issues.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ The reason is that I'm trying very hard to keep the interface for this action to
3535
Git hooks must be installed after a repository is checked out in order for them to work.
3636
So the straightforward solution is to just not install them during the workflow where this action is used.
3737

38-
- If hooks are automatically enabled by a framework, use an option provided by the framework to disable them. For example, for Husky users, they can be disabled with the `--ignore-scripts` flag.
38+
- If hooks are automatically enabled by a framework, use an option provided by the framework to disable them. For example, for Husky users, they can be disabled with the `--ignore-scripts` flag, or by setting the `HUSKY` environment variable when the action runs.
39+
```yml
40+
uses: peter-evans/create-pull-request@v6
41+
env:
42+
HUSKY: '0'
43+
```
3944
- If hooks are installed in a script, then add a condition checking if the `CI` environment variable exists.
4045
```sh
4146
#!/bin/sh

0 commit comments

Comments
 (0)