docs: add snippet for bypassing git hooks
This commit is contained in:
parent
d36c8e0863
commit
75a5de63f0
1 changed files with 13 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
||||||
- [autopep8](#autopep8)
|
- [autopep8](#autopep8)
|
||||||
- [Misc workflow tips](#misc-workflow-tips)
|
- [Misc workflow tips](#misc-workflow-tips)
|
||||||
- [Filtering push events](#filtering-push-events)
|
- [Filtering push events](#filtering-push-events)
|
||||||
|
- [Bypassing git hooks](#bypassing-git-hooks)
|
||||||
- [Dynamic configuration using variables](#dynamic-configuration-using-variables)
|
- [Dynamic configuration using variables](#dynamic-configuration-using-variables)
|
||||||
- [Setting the pull request body from a file](#setting-the-pull-request-body-from-a-file)
|
- [Setting the pull request body from a file](#setting-the-pull-request-body-from-a-file)
|
||||||
- [Using a markdown template](#using-a-markdown-template)
|
- [Using a markdown template](#using-a-markdown-template)
|
||||||
|
@ -526,6 +527,18 @@ jobs:
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Bypassing git hooks
|
||||||
|
|
||||||
|
If you have git hooks that prevent the action from working correctly you can remove them before running the action.
|
||||||
|
|
||||||
|
```yml
|
||||||
|
# Remove git hooks
|
||||||
|
- run: rm -rf .git/hooks
|
||||||
|
|
||||||
|
- name: Create Pull Request
|
||||||
|
uses: peter-evans/create-pull-request@v4
|
||||||
|
```
|
||||||
|
|
||||||
### Dynamic configuration using variables
|
### Dynamic configuration using variables
|
||||||
|
|
||||||
The following examples show how configuration for the action can be dynamically defined in a previous workflow step.
|
The following examples show how configuration for the action can be dynamically defined in a previous workflow step.
|
||||||
|
|
Loading…
Reference in a new issue