update readme
This commit is contained in:
21
README.md
21
README.md
@@ -17,11 +17,10 @@ There are two step dependencies that are required in your workflow before runnin
|
|||||||
```yaml
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
uses: actions/checkout@v2
|
||||||
- name: Fetch tags and master for GitVersion
|
- name: Fetch all history for all tags and branches
|
||||||
run: |
|
run: |
|
||||||
git fetch --tags
|
git fetch --prune --unshallow
|
||||||
git branch --create-reflog master origin/master
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Basic:
|
Basic:
|
||||||
@@ -71,7 +70,9 @@ Basic:
|
|||||||
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.commitsSinceVersionSource }}"
|
echo "CommitsSinceVersionSource: ${{ steps.gitversion.outputs.commitsSinceVersionSource }}"
|
||||||
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 Repositories
|
||||||
|
|
||||||
Private repos require credentials before you can fetch the master branch and tags.
|
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
|
```yaml
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v1
|
- name: Checkout
|
||||||
- name: Fetch tags and master for GitVersion
|
uses: actions/checkout@v2
|
||||||
run: |
|
- 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 config remote.origin.url https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}
|
||||||
git fetch --tags
|
git fetch --prune --unshallow
|
||||||
git branch --create-reflog master origin/master
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user