Revert "Merge pull request #814 from GitTools/feature/691"
This reverts commit 20cee55108.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- task: gitreleasemanager/close@0
|
||||
- task: gitreleasemanager/close@0
|
||||
inputs:
|
||||
token: '$(GITHUB_TOKEN)'
|
||||
owner: 'someOwner'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- task: gitreleasemanager/open@0
|
||||
- task: gitreleasemanager/open@0
|
||||
inputs:
|
||||
token: '$(GITHUB_TOKEN)'
|
||||
owner: 'someOwner'
|
||||
|
||||
@@ -226,19 +226,18 @@ steps:
|
||||
Calculate the version for the build and use the `GitVersion.BranchName` variable in a condition for starting another job.
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
- job: CalculateVersion
|
||||
displayName: Calculate version using GitVersion
|
||||
steps:
|
||||
# gitversion/setup@0 task omitted for brevity.
|
||||
job: CalculateVersion
|
||||
displayName: Calculate version using GitVersion
|
||||
steps:
|
||||
# gitversion/setup@0 task omitted for brevity.
|
||||
|
||||
- task: gitversion/execute@0
|
||||
displayName: Use GitVersion
|
||||
name: Version # the step MUST be named to access its output variables in another job.
|
||||
- task: gitversion/execute@0
|
||||
displayName: Use GitVersion
|
||||
name: Version # the step MUST be named to access its output variables in another job.
|
||||
|
||||
- job: CreateReleaseNotes
|
||||
condition: and(succeeded(), eq(dependencies.CalculateVersion.outputs['Version.GitVersion.BranchName'], 'main'))
|
||||
dependsOn: CalculateVersion
|
||||
job: CreateReleaseNotes
|
||||
condition: and(succeeded(), eq(dependencies.CalculateVersion.outputs['Version.GitVersion.BranchName'], 'main'))
|
||||
dependsOn: CalculateVersion
|
||||
```
|
||||
|
||||
### Example 8
|
||||
@@ -246,19 +245,18 @@ jobs:
|
||||
Calculate the version for the build and map the `GitVersion.SemVer` variable into a variable in another job.
|
||||
|
||||
```yaml
|
||||
jobs:
|
||||
- job: CalculateVersion
|
||||
displayName: Calculate version using GitVersion
|
||||
steps:
|
||||
# gitversion/setup@0 task omitted for brevity.
|
||||
job: CalculateVersion
|
||||
displayName: Calculate version using GitVersion
|
||||
steps:
|
||||
# gitversion/setup@0 task omitted for brevity.
|
||||
|
||||
- task: gitversion/execute@0
|
||||
displayName: Use GitVersion
|
||||
name: Version # the step MUST be named to access its output variables in another job.
|
||||
- task: gitversion/execute@0
|
||||
displayName: Use GitVersion
|
||||
name: Version # the step MUST be named to access its output variables in another job.
|
||||
|
||||
- job: BuildAndPack
|
||||
variables:
|
||||
Ver.MajorMinorPatch: $[ dependencies.CalculateVersion.outputs['Version.GitVersion.MajorMinorPatch'] ]
|
||||
job: BuildAndPack
|
||||
variables:
|
||||
Ver.MajorMinorPatch: $[ dependencies.CalculateVersion.outputs['Version.GitVersion.MajorMinorPatch'] ]
|
||||
```
|
||||
|
||||
### Example 9
|
||||
|
||||
@@ -21,10 +21,6 @@ ignoreFailedSources:
|
||||
description: Treat package source failures as warnings.
|
||||
required: false
|
||||
default: false
|
||||
preferLatestVersion:
|
||||
description: Prefer to download the latest version matching the versionSpec, even if there is a local cached version.
|
||||
required: false
|
||||
default: 'false'
|
||||
```
|
||||
|
||||
---
|
||||
@@ -67,16 +63,3 @@ steps:
|
||||
versionSpec: '6.x'
|
||||
includePrerelease: true
|
||||
```
|
||||
|
||||
### Example 4
|
||||
|
||||
Install the latest GitVersion 5 version even it there is a cached version matching the versionSpec.
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- task: gitversion/setup@0
|
||||
displayName: Install GitVersion
|
||||
inputs:
|
||||
versionSpec: '5.x'
|
||||
preferLatestVersion: true
|
||||
```
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: gittools/actions/gitreleasemanager/addassetv0
|
||||
- uses: gittools/actions/gitreleasemanager/addasset@v0.9.2
|
||||
name: Add asset to a release with GitReleaseManager
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: gittools/actions/gitreleasemanager/closev0
|
||||
- uses: gittools/actions/gitreleasemanager/close@v0.9.2
|
||||
name: Close release with GitReleaseManager
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: gittools/actions/gitreleasemanager/createv0
|
||||
- uses: gittools/actions/gitreleasemanager/create@v0.9.2
|
||||
name: Create release with GitReleaseManager
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: gittools/actions/gitreleasemanager/discardv0
|
||||
- uses: gittools/actions/gitreleasemanager/discard@v0.9.2
|
||||
name: Discard release with GitReleaseManager
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: gittools/actions/gitreleasemanager/openv0
|
||||
- uses: gittools/actions/gitreleasemanager/open@v0.9.2
|
||||
name: Open release with GitReleaseManager
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: gittools/actions/gitreleasemanager/publishv0
|
||||
- uses: gittools/actions/gitreleasemanager/publish@v0.9.2
|
||||
name: Publish release with GitReleaseManager
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- uses: gittools/actions/gitreleasemanager/setupv0
|
||||
- uses: gittools/actions/gitreleasemanager/setup@v0.9.2
|
||||
name: Install GitReleaseManager
|
||||
with:
|
||||
versionSpec: '0.10.x'
|
||||
|
||||
@@ -100,10 +100,10 @@ Calculate the version for the build.
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
# gitversion/setup@v0 action omitted for brevity.
|
||||
# gitversion/setup@v0.9.7 action omitted for brevity.
|
||||
|
||||
- name: Determine Version
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||
```
|
||||
|
||||
### Example 2
|
||||
@@ -113,7 +113,7 @@ Calculate the version for the build using a config file with the default name **
|
||||
```yaml
|
||||
steps:
|
||||
- name: Determine Version
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||
with:
|
||||
useConfigFile: true
|
||||
```
|
||||
@@ -135,10 +135,10 @@ Calculate the version for the build using a config file named **VersionConfig.ym
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
# gitversion/setup@v0 action omitted for brevity.
|
||||
# gitversion/setup@v0.9.7 action omitted for brevity.
|
||||
|
||||
- name: Determine Version
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||
with:
|
||||
useConfigFile: true
|
||||
configFilePath: VersionConfig.yml
|
||||
@@ -150,10 +150,10 @@ Show the effective configuration for GitVersion by running the **/showConfig** c
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
# gitversion/setup@v0 action omitted for brevity.
|
||||
# gitversion/setup@v0.9.7 action omitted for brevity.
|
||||
|
||||
- name: Display GitVersion config
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||
with:
|
||||
useConfigFile: true
|
||||
additionalArguments: '/showConfig'
|
||||
@@ -165,11 +165,11 @@ Calculate the version for the build and display all the calculated variables in
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
# gitversion/setup@v0 action omitted for brevity.
|
||||
# gitversion/setup@v0.9.7 action omitted for brevity.
|
||||
|
||||
- name: Determine Version
|
||||
id: gitversion
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||
|
||||
- name: Display GitVersion outputs
|
||||
run: |
|
||||
@@ -213,10 +213,10 @@ Calculate the version for the build and display the value of the `GITVERSION_SEM
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
# gitversion/setup@v0 action omitted for brevity.
|
||||
# gitversion/setup@v0.9.7 action omitted for brevity.
|
||||
|
||||
- name: Determine Version
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||
|
||||
- name: Display SemVer
|
||||
run: |
|
||||
@@ -239,7 +239,7 @@ jobs:
|
||||
|
||||
- name: Determine Version
|
||||
id: gitversion
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||
|
||||
create-release-notes:
|
||||
name: Create Release Notes
|
||||
@@ -268,7 +268,7 @@ jobs:
|
||||
|
||||
- name: Determine Version
|
||||
id: gitversion
|
||||
uses: gittools/actions/gitversion/execute@v0
|
||||
uses: gittools/actions/gitversion/execute@v0.9.7
|
||||
|
||||
display-semver:
|
||||
name: Display Semantic Version
|
||||
|
||||
@@ -34,7 +34,7 @@ Install the latest GitVersion 5 version.
|
||||
```yaml
|
||||
steps:
|
||||
- name: Install GitVersion
|
||||
uses: gittools/actions/gitversion/setup@v0
|
||||
uses: gittools/actions/gitversion/setup@v0.9.7
|
||||
with:
|
||||
versionSpec: '5.x'
|
||||
```
|
||||
@@ -46,7 +46,7 @@ Install GitVersion 5.5.0.
|
||||
```yaml
|
||||
steps:
|
||||
- name: Install GitVersion
|
||||
uses: gittools/actions/gitversion/setup@v0
|
||||
uses: gittools/actions/gitversion/setup@v0.9.7
|
||||
with:
|
||||
versionSpec: '5.5.0'
|
||||
```
|
||||
@@ -58,21 +58,8 @@ Install the latest GitVersion 6 pre-release version. For example **6.0.0-beta1.
|
||||
```yaml
|
||||
steps:
|
||||
- name: Install GitVersion
|
||||
uses: gittools/actions/gitversion/setup@v0
|
||||
uses: gittools/actions/gitversion/setup@v0.9.7
|
||||
with:
|
||||
versionSpec: '6.x'
|
||||
includePrerelease: true
|
||||
```
|
||||
|
||||
### Example 4
|
||||
|
||||
Install the latest GitVersion 5 version even it there is a cached version matching the versionSpec.
|
||||
|
||||
```yaml
|
||||
steps:
|
||||
- name: Install GitVersion
|
||||
uses: gittools/actions/gitversion/setup@v0
|
||||
with:
|
||||
versionSpec: '5.x'
|
||||
preferLatestVersion: true
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user