example of variables usage for gitversion execute for azure pipelines

This commit is contained in:
Artur Stolear
2020-02-10 17:59:01 +02:00
parent c390b904c1
commit d95dee3516
20 changed files with 233 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
# Example
```yaml
steps:
- name: Fetch all history for all tags and branches
run: git fetch --prune --unshallow
- name: Use GitVersion
id: gitversion # step id used as reference for output values
uses: gittools/actions/gitversion/execute@v0.9
- run: |
echo "Major: ${{ steps.gitversion.outputs.major }}"
echo "Minor: ${{ steps.gitversion.outputs.minor }}"
echo "Patch: ${{ steps.gitversion.outputs.patch }}"
name: Output
```

View File

@@ -0,0 +1,11 @@
# Example
```yaml
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.9
with:
versionSpec: '5.1.x'
```