Add private repo documentation
Add git credentials to documentation to support private repositories
This commit is contained in:
@@ -20,6 +20,7 @@ There are two step dependencies that are required in your workflow before runnin
|
|||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v1
|
||||||
- name: Fetch tags and master for GitVersion
|
- name: Fetch tags and master for GitVersion
|
||||||
run: |
|
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 fetch --tags
|
||||||
git branch --create-reflog master origin/master
|
git branch --create-reflog master origin/master
|
||||||
```
|
```
|
||||||
@@ -31,6 +32,7 @@ Basic:
|
|||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
- name: Fetch tags and master for GitVersion
|
- name: Fetch tags and master for GitVersion
|
||||||
run: |
|
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 fetch --tags
|
||||||
git branch --create-reflog master origin/master
|
git branch --create-reflog master origin/master
|
||||||
- name: Install GitVersion
|
- name: Install GitVersion
|
||||||
|
|||||||
Reference in New Issue
Block a user