docs: updates related to checkout
This commit is contained in:
parent
105f0d3816
commit
5ea31358e9
|
@ -26,6 +26,10 @@ Create Pull Request action will:
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
|
# Make changes to pull request here
|
||||||
|
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
uses: peter-evans/create-pull-request@v3
|
uses: peter-evans/create-pull-request@v3
|
||||||
```
|
```
|
||||||
|
|
|
@ -29,7 +29,8 @@ A pull request references two branches:
|
||||||
|
|
||||||
## Events and checkout
|
## Events and checkout
|
||||||
|
|
||||||
For each [event type](https://docs.github.com/en/actions/reference/events-that-trigger-workflows) there is a default `GITHUB_SHA` that will be checked out by the GitHub Actions [checkout](https://github.com/actions/checkout) action.
|
This action expects repositories to be checked out with the official GitHub Actions [checkout](https://github.com/actions/checkout) action.
|
||||||
|
For each [event type](https://docs.github.com/en/actions/reference/events-that-trigger-workflows) there is a default `GITHUB_SHA` that will be checked out.
|
||||||
|
|
||||||
The default can be overridden by specifying a `ref` on checkout.
|
The default can be overridden by specifying a `ref` on checkout.
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue