From 79ec260c7bfb565a197e38a7d4197497d6fc3b8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Ulsberg?= Date: Fri, 25 Sep 2020 12:14:30 +0200 Subject: [PATCH] Move content from execute.md into index.md --- docs/examples/azure/gitversion/execute.md | 10 ---------- docs/examples/azure/gitversion/index.md | 11 +++++++++++ docs/examples/github/gitversion/execute.md | 15 --------------- docs/examples/github/gitversion/index.md | 16 ++++++++++++++++ 4 files changed, 27 insertions(+), 25 deletions(-) delete mode 100644 docs/examples/azure/gitversion/execute.md delete mode 100644 docs/examples/github/gitversion/execute.md diff --git a/docs/examples/azure/gitversion/execute.md b/docs/examples/azure/gitversion/execute.md deleted file mode 100644 index 0413974..0000000 --- a/docs/examples/azure/gitversion/execute.md +++ /dev/null @@ -1,10 +0,0 @@ -# Example - -```yaml -steps: -- task: gitversion/execute@0 - displayName: Use GitVersion -- script: | - echo FullSemVer: $(fullSemVer) - echo ##vso[build.updatebuildnumber]$(fullSemVer) -``` diff --git a/docs/examples/azure/gitversion/index.md b/docs/examples/azure/gitversion/index.md index a8710e4..a448458 100644 --- a/docs/examples/azure/gitversion/index.md +++ b/docs/examples/azure/gitversion/index.md @@ -7,3 +7,14 @@ inputs: versionSpec: '5.1.3' ``` + +# Example + +```yaml +steps: +- task: gitversion/execute@0 + displayName: Use GitVersion +- script: | + echo FullSemVer: $(fullSemVer) + echo ##vso[build.updatebuildnumber]$(fullSemVer) +``` diff --git a/docs/examples/github/gitversion/execute.md b/docs/examples/github/gitversion/execute.md deleted file mode 100644 index ae1d04e..0000000 --- a/docs/examples/github/gitversion/execute.md +++ /dev/null @@ -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 -``` diff --git a/docs/examples/github/gitversion/index.md b/docs/examples/github/gitversion/index.md index 5590ae5..902f398 100644 --- a/docs/examples/github/gitversion/index.md +++ b/docs/examples/github/gitversion/index.md @@ -9,3 +9,19 @@ with: 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 +```