Skip to content

Commit 722adc6

Browse files
authored
update examples to reference v2 tag (#110)
1 parent 3537747 commit 722adc6

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

.github/workflows/test.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
steps:
3232
# Clone this repo
3333
- name: Checkout
34-
uses: actions/checkout@v2-beta
34+
uses: actions/checkout@v2
3535

3636
# Basic checkout
3737
- name: Basic checkout
@@ -89,7 +89,7 @@ jobs:
8989
steps:
9090
# Clone this repo
9191
- name: Checkout
92-
uses: actions/checkout@v2-beta
92+
uses: actions/checkout@v2
9393

9494
# Basic checkout
9595
- name: Basic checkout

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<a href="https://github.com/actions/checkout"><img alt="GitHub Actions status" src="https://github.com/actions/checkout/workflows/test-local/badge.svg"></a>
33
</p>
44

5-
# Checkout V2 beta
5+
# Checkout V2
66

77
This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it.
88

@@ -35,7 +35,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
3535

3636
<!-- start usage -->
3737
```yaml
38-
- uses: actions/checkout@v2-beta
38+
- uses: actions/checkout@v2
3939
with:
4040
# Repository name with owner. For example, actions/checkout
4141
# Default: ${{ github.repository }}
@@ -76,15 +76,15 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
7676
## Checkout a different branch
7777
7878
```yaml
79-
- uses: actions/checkout@v2-beta
79+
- uses: actions/checkout@v2
8080
with:
8181
ref: some-branch
8282
```
8383
8484
## Checkout a different, private repository
8585
8686
```yaml
87-
- uses: actions/checkout@v2-beta
87+
- uses: actions/checkout@v2
8888
with:
8989
repository: myAccount/myRepository
9090
ref: refs/heads/master
@@ -95,7 +95,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
9595
## Checkout the HEAD commit of a PR, rather than the merge commit
9696

9797
```yaml
98-
- uses: actions/checkout@v2-beta
98+
- uses: actions/checkout@v2
9999
with:
100100
ref: ${{ github.event.pull_request.head.sha }}
101101
```

src/misc/generate-docs.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function updateUsage(
9696
}
9797

9898
updateUsage(
99-
'actions/checkout@v2-beta',
99+
'actions/checkout@v2',
100100
path.join(__dirname, '..', '..', 'action.yml'),
101101
path.join(__dirname, '..', '..', 'README.md')
102102
)

0 commit comments

Comments
 (0)