Read-only mirror — the public repositories of the Forgejo instance, refreshed every 10 minutes. The live instance (fg.dieschoenewolke.de) is reachable only over the VPN; clone here with https://git.dieschoenewolke.de/git/<owner>/<repo>.git.
summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authoreric sciple <ericsciple@users.noreply.github.com>2019-12-03 18:12:12 -0500
committereric sciple <ericsciple@users.noreply.github.com>2019-12-03 18:12:12 -0500
commit869d8a4d75ac11576d3109811c37817a11126005 (patch)
tree78615e87f884065df6bd780f9091009617d0fa53 /README.md
parent0d5f671e74e98555f4f1e919cd88ed0191789585 (diff)
pr head commit scenariousers/ericsciple/m162pr
Diffstat (limited to 'README.md')
-rw-r--r--README.md12
1 files changed, 10 insertions, 2 deletions
diff --git a/README.md b/README.md
index f8d1493..0045bf7 100644
--- a/README.md
+++ b/README.md
@@ -66,7 +66,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
## Checkout a different branch
```yaml
-- uses: actions/checkout@preview
+- uses: actions/checkout@v2-beta
with:
ref: some-branch
```
@@ -74,7 +74,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
## Checkout a different, private repository
```yaml
-- uses: actions/checkout@preview
+- uses: actions/checkout@v2-beta
with:
repository: myAccount/myRepository
ref: refs/heads/master
@@ -82,6 +82,14 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
```
> - `${{ github.token }}` is scoped to the current repository, so if you want to checkout another repository that is private you will need to provide your own [PAT](https://help.github.com/en/github/authenticating-to-github/creating-a-personal-access-token-for-the-command-line).
+## Checkout the HEAD commit of a PR, rather than the merge commit
+
+```yaml
+- uses: actions/checkout@v2-beta
+ with:
+ ref: refs/pull/${{ github.event.number }}/head
+```
+
# License
The scripts and documentation in this project are released under the [MIT License](LICENSE)