From 3f6597b08671f44e78c9f2c98bafd25e0f6817fb Mon Sep 17 00:00:00 2001 From: Artur Stolear Date: Wed, 15 Jan 2020 18:09:15 +0200 Subject: [PATCH] update readme --- README.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 88a1e40..a6c9867 100644 --- a/README.md +++ b/README.md @@ -17,11 +17,10 @@ There are two step dependencies that are required in your workflow before runnin ```yaml steps: - name: Checkout - uses: actions/checkout@v1 - - name: Fetch tags and master for GitVersion - run: | - git fetch --tags - git branch --create-reflog master origin/master + uses: actions/checkout@v2 + - name: Fetch all history for all tags and branches + run: | + git fetch --prune --unshallow ``` Basic: @@ -71,7 +70,9 @@ Basic: echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.commitsSinceVersionSource }}" echo "CommitsSinceVersionSourcePadded: ${{ steps.gitversion.outputs.commitsSinceVersionSourcePadded }}" echo "CommitDate: ${{ steps.gitversion.outputs.commitDate }}" + ``` + ### Private Repositories Private repos require credentials before you can fetch the master branch and tags. @@ -79,10 +80,10 @@ Private repos require credentials before you can fetch the master branch and tag ```yaml steps: - name: Checkout - uses: actions/checkout@v1 - - name: Fetch tags and master for GitVersion - run: | + - name: Checkout + uses: actions/checkout@v2 + - name: Fetch all history for all tags and branches + run: | git config remote.origin.url https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} - git fetch --tags - git branch --create-reflog master origin/master + git fetch --prune --unshallow ```