Move content from execute.md into index.md
This commit is contained in:
@@ -1,10 +0,0 @@
|
|||||||
# Example
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
steps:
|
|
||||||
- task: gitversion/execute@0
|
|
||||||
displayName: Use GitVersion
|
|
||||||
- script: |
|
|
||||||
echo FullSemVer: $(fullSemVer)
|
|
||||||
echo ##vso[build.updatebuildnumber]$(fullSemVer)
|
|
||||||
```
|
|
||||||
@@ -7,3 +7,14 @@
|
|||||||
inputs:
|
inputs:
|
||||||
versionSpec: '5.1.3'
|
versionSpec: '5.1.3'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# Example
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
steps:
|
||||||
|
- task: gitversion/execute@0
|
||||||
|
displayName: Use GitVersion
|
||||||
|
- script: |
|
||||||
|
echo FullSemVer: $(fullSemVer)
|
||||||
|
echo ##vso[build.updatebuildnumber]$(fullSemVer)
|
||||||
|
```
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
# 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.2
|
|
||||||
- run: |
|
|
||||||
echo "Major: ${{ steps.gitversion.outputs.major }}"
|
|
||||||
echo "Minor: ${{ steps.gitversion.outputs.minor }}"
|
|
||||||
echo "Patch: ${{ steps.gitversion.outputs.patch }}"
|
|
||||||
name: Output
|
|
||||||
```
|
|
||||||
@@ -9,3 +9,19 @@
|
|||||||
with:
|
with:
|
||||||
versionSpec: '5.2.x'
|
versionSpec: '5.2.x'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
# 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.2
|
||||||
|
- run: |
|
||||||
|
echo "Major: ${{ steps.gitversion.outputs.major }}"
|
||||||
|
echo "Minor: ${{ steps.gitversion.outputs.minor }}"
|
||||||
|
echo "Patch: ${{ steps.gitversion.outputs.patch }}"
|
||||||
|
name: Output
|
||||||
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user