update basic example to use actions/checkout@v2

This commit is contained in:
Joseph Petersen
2020-01-24 10:28:51 +01:00
committed by Artur
parent 12398bf4da
commit 9a0c41862a

View File

@@ -20,19 +20,17 @@ There are two step dependencies that are required in your workflow before runnin
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
- name: Fetch all history for all tags and branches - name: Fetch all history for all tags and branches
run: | run: git fetch --prune --unshallow
git fetch --prune --unshallow
``` ```
Basic: Basic:
```yaml ```yaml
steps: steps:
- uses: actions/checkout@v1 - name: Checkout
- name: Fetch tags and master for GitVersion uses: actions/checkout@v2
run: | - name: Fetch all history for all tags and branches
git fetch --tags run: git fetch --prune --unshallow
git branch --create-reflog master origin/master
- name: Install GitVersion - name: Install GitVersion
uses: gittools/actions/setup-gitversion@v0.3 uses: gittools/actions/setup-gitversion@v0.3
with: with: