Revert "Update documentation"
This reverts commit 628c2d7d357770ef6dcee50772bb1a2049883a8b.
This commit is contained in:
parent
8305970523
commit
115b7391e1
@ -79,12 +79,12 @@ Although rare, there may be use cases where it makes sense to execute the workfl
|
|||||||
|
|
||||||
### Pull request events
|
### Pull request events
|
||||||
|
|
||||||
Workflows triggered by `pull_request` events will by default check out a [merge commit](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#pull-request-event-pull_request). To prevent the merge commit being included in created pull requests it is necessary to checkout the pull request `head.sha`.
|
Workflows triggered by `pull_request` events will by default check out a [merge commit](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#pull-request-event-pull_request). To prevent the merge commit being included in created pull requests it is necessary to checkout the `head_ref`.
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.pull_request.head.sha }}
|
ref: ${{ github.head_ref }}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Restrictions on forked repositories
|
### Restrictions on forked repositories
|
||||||
|
Loading…
x
Reference in New Issue
Block a user