example of variables usage for gitversion execute for azure pipelines
This commit is contained in:
15
docs/examples/github/gitversion/execute.md
Normal file
15
docs/examples/github/gitversion/execute.md
Normal 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
|
||||
```
|
||||
11
docs/examples/github/gitversion/setup.md
Normal file
11
docs/examples/github/gitversion/setup.md
Normal 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'
|
||||
```
|
||||
Reference in New Issue
Block a user