From 28adff5627f1ea4f213ee6a3da5317c82bc813cf Mon Sep 17 00:00:00 2001 From: James Schafer Date: Sat, 7 Dec 2019 08:32:17 -0500 Subject: [PATCH] Add private repo documentation Add git credentials to documentation to support private repositories --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ec1a129..6e28ad4 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ There are two step dependencies that are required in your workflow before runnin uses: actions/checkout@v1 - name: Fetch tags and master for GitVersion run: | + git config remote.origin.url https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} # creds needed for private repos git fetch --tags git branch --create-reflog master origin/master ``` @@ -31,6 +32,7 @@ Basic: - uses: actions/checkout@v1 - name: Fetch tags and master for GitVersion run: | + git config remote.origin.url https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} # creds needed for private repos git fetch --tags git branch --create-reflog master origin/master - name: Install GitVersion