From 9a0c41862a4ddaab288c08dab795560e5d26ef10 Mon Sep 17 00:00:00 2001 From: Joseph Petersen Date: Fri, 24 Jan 2020 10:28:51 +0100 Subject: [PATCH] update basic example to use actions/checkout@v2 --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index db311f6..ac6128e 100644 --- a/README.md +++ b/README.md @@ -20,19 +20,17 @@ There are two step dependencies that are required in your workflow before runnin - name: Checkout uses: actions/checkout@v2 - name: Fetch all history for all tags and branches - run: | - git fetch --prune --unshallow + run: git fetch --prune --unshallow ``` Basic: ```yaml steps: - - uses: actions/checkout@v1 - - name: Fetch tags and master for GitVersion - run: | - git fetch --tags - git branch --create-reflog master origin/master + - name: Checkout + uses: actions/checkout@v2 + - name: Fetch all history for all tags and branches + run: git fetch --prune --unshallow - name: Install GitVersion uses: gittools/actions/setup-gitversion@v0.3 with: