From 722adc63f1aa60a57ec37892e133b1d319cae598 Mon Sep 17 00:00:00 2001 From: eric sciple Date: Fri, 13 Dec 2019 00:00:48 -0500 Subject: [PATCH] update examples to reference v2 tag (#110) --- .github/workflows/test.yml | 4 ++-- README.md | 10 +++++----- src/misc/generate-docs.ts | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2bcde49..e97c88f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 @@ -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 diff --git a/README.md b/README.md index f27df23..46cefb5 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ GitHub Actions status

-# 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 ```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 }} ``` diff --git a/src/misc/generate-docs.ts b/src/misc/generate-docs.ts index 28bab38..ee90d6f 100644 --- a/src/misc/generate-docs.ts +++ b/src/misc/generate-docs.ts @@ -96,7 +96,7 @@ function updateUsage( } updateUsage( - 'actions/checkout@v2-beta', + 'actions/checkout@v2', path.join(__dirname, '..', '..', 'action.yml'), path.join(__dirname, '..', '..', 'README.md') )