Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 470 Bytes

File metadata and controls

15 lines (14 loc) · 470 Bytes

Example

  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