diff options
| author | eric sciple <ericsciple@users.noreply.github.com> | 2019-12-13 00:00:48 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-13 00:00:48 -0500 |
| commit | 16f5649d38a91abdbb6c5103bfa22e7e5bdc7d1d (patch) | |
| tree | d56bdbb03e25b92a51b811a6043dddc6afd8e08e /README.md | |
| parent | 7b8e02b8fc23af3573e96d63f155e4796d1cfe9e (diff) | |
update examples to reference v2 tag (#110)v2.0.0
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -2,7 +2,7 @@ <a href="https://github.com/actions/checkout"><img alt="GitHub Actions status" src="https://github.com/actions/checkout/workflows/test-local/badge.svg"></a> </p> -# Checkout V2 beta +# Checkout V2 This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it. @@ -35,7 +35,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous <!-- start usage --> ```yaml -- uses: actions/checkout@v2-beta +- uses: actions/checkout@v2 with: # Repository name with owner. For example, actions/checkout # Default: ${{ github.repository }} @@ -76,7 +76,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous ## Checkout a different branch ```yaml -- uses: actions/checkout@v2-beta +- uses: actions/checkout@v2 with: ref: some-branch ``` @@ -84,7 +84,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous ## Checkout a different, private repository ```yaml -- uses: actions/checkout@v2-beta +- uses: actions/checkout@v2 with: repository: myAccount/myRepository ref: refs/heads/master @@ -95,7 +95,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous ## Checkout the HEAD commit of a PR, rather than the merge commit ```yaml -- uses: actions/checkout@v2-beta +- uses: actions/checkout@v2 with: ref: ${{ github.event.pull_request.head.sha }} ``` |
