Skip to content

Commit

Permalink
update examples to reference v2 tag (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsciple authored Dec 13, 2019
1 parent 3537747 commit 722adc6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
steps:
# Clone this repo
- name: Checkout
uses: actions/checkout@v2-beta
uses: actions/checkout@v2

# Basic checkout
- name: Basic checkout
Expand Down Expand Up @@ -89,7 +89,7 @@ jobs:
steps:
# Clone this repo
- name: Checkout
uses: actions/checkout@v2-beta
uses: actions/checkout@v2

# Basic checkout
- name: Basic checkout
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -76,15 +76,15 @@ 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
```
## Checkout a different, private repository
```yaml
- uses: actions/checkout@v2-beta
- uses: actions/checkout@v2
with:
repository: myAccount/myRepository
ref: refs/heads/master
Expand All @@ -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 }}
```
Expand Down
2 changes: 1 addition & 1 deletion src/misc/generate-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function updateUsage(
}

updateUsage(
'actions/checkout@v2-beta',
'actions/checkout@v2',
path.join(__dirname, '..', '..', 'action.yml'),
path.join(__dirname, '..', '..', 'README.md')
)

0 comments on commit 722adc6

Please sign in to comment.