updates to readme

This commit is contained in:
Artur Stolear
2019-11-22 19:41:30 +02:00
parent 206fc5b464
commit 6a5567e664
2 changed files with 46 additions and 1 deletions

View File

@@ -1,2 +1,43 @@
# use-gitversion
![GitVersion](https://raw.githubusercontent.com/GitTools/GitVersion/master/docs/img/package_icon.png "GitVersion")
Github Action that installs and uses the GitVersion tool
## Usage
See [setup](setup/action.yml) and [usage](execute/action.yml)
## Dependency
There are two step dependencies that are required in your workflow before running this action. You must checkout your Git repository and then fetch the master branch and tags.
```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
```
Basic:
```yaml
steps:
- uses: actions/checkout@v1
- name: Fetch tags and master for GitVersion
run: |
git fetch --tags
git branch --create-reflog master origin/master
- name: Install GitVersion
uses: gittools/use-gitversion/setup@v0.1
with:
versionSpec: '5.1.x'
- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/use-gitversion/execute@v0.1
- run: |
echo "FullSemVer: ${{ steps.gitversion.outputs.FullSemVer }}"
```