Skip to content

Commit 115b739

Browse files
committed
Revert "Update documentation"
This reverts commit 628c2d7.
1 parent 8305970 commit 115b739

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/concepts-guidelines.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ Although rare, there may be use cases where it makes sense to execute the workfl
7979

8080
### Pull request events
8181

82-
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`.
82+
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`.
8383

8484
```yml
8585
- uses: actions/checkout@v2
8686
with:
87-
ref: ${{ github.event.pull_request.head.sha }}
87+
ref: ${{ github.head_ref }}
8888
```
8989

9090
### Restrictions on forked repositories

0 commit comments

Comments
 (0)