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 11:26:12 -0500
committerGitHub <noreply@github.com>2019-12-03 11:26:12 -0500
commit3c361d95607b8220f0c99421235d266b9c6b18d8 (patch)
treea3b81ecd1d42eccde931227fcc0d487fb9aa2975 /README.md
parente404ba5989baa550f631fb1262539d1375a856b7 (diff)
update readme (#82)
Diffstat (limited to 'README.md')
-rw-r--r--README.md20
1 files changed, 18 insertions, 2 deletions
diff --git a/README.md b/README.md
index 3b71d53..ac4893f 100644
--- a/README.md
+++ b/README.md
@@ -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 (preview)
+# Checkout V2 (beta)
This action checks-out your repository under `$GITHUB_WORKSPACE`, so your workflow can access it.
@@ -10,13 +10,29 @@ By default, the repository that triggered the workflow is checked-out, for the r
Refer [here](https://help.github.com/en/articles/events-that-trigger-workflows) to learn which commit `$GITHUB_SHA` points to for different events.
+Changes in V2:
+- Improved fetch performance
+ - The default behavior now fetches only the SHA being checked-out
+- Script authenticated git commands
+ - Persists `with.token` in the local git config
+ - Enables your scripts to run authenticated git commands
+ - Post-job cleanup removes the token
+ - Coming soon: Opt out by setting `with.persist-credentials` to `false`
+- Creates a local branch
+ - No longer detached HEAD when checking out a branch
+ - A local branch is created with the corresponding upstream branch set
+- Improved layout
+ - `with.path` is always relative to `github.workspace`
+ - Aligns better with container actions, where `github.workspace` gets mapped in
+- Removed input `submodules`
+
Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous versions.
# Usage
<!-- start usage -->
```yaml
-- uses: actions/checkout@preview
+- uses: actions/checkout@v2-beta
with:
# Repository name
# Default: ${{ github.repository }}