Update README.md
This commit is contained in:
15
README.md
15
README.md
@@ -20,7 +20,6 @@ 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
|
||||||
```
|
```
|
||||||
@@ -74,3 +73,17 @@ Basic:
|
|||||||
echo "CommitsSinceVersionSourcePadded: ${{ steps.gitversion.outputs.commitsSinceVersionSourcePadded }}"
|
echo "CommitsSinceVersionSourcePadded: ${{ steps.gitversion.outputs.commitsSinceVersionSourcePadded }}"
|
||||||
echo "CommitDate: ${{ steps.gitversion.outputs.commitDate }}"
|
echo "CommitDate: ${{ steps.gitversion.outputs.commitDate }}"
|
||||||
```
|
```
|
||||||
|
### Private Repositories
|
||||||
|
|
||||||
|
Private repos require credentials before you can fetch the master branch and tags.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
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 }}
|
||||||
|
git fetch --tags
|
||||||
|
git branch --create-reflog master origin/master
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user