Skip to content

Latest commit

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

get-gitversion

This is a GitHub workflow which calculates the commit version based on Git history.

See OpenTAP docs for details about the format.

To use in your workflow, add this job:

jobs:
GetVersion:
runs-on: ubuntu-20.04outputs:
ShortVersion: ${{ steps.gitversion.outputs.ShortVersion }}LongVersion: ${{ steps.gitversion.outputs.LongVersion }}GitVersion: ${{ steps.gitversion.outputs.GitVersion }}steps:
- name: GitVersionid: gitversionuses: opentap/get-gitversion@v1.0

You can then use the version in a job like this:

jobs:
...Package:
needs:
- GetVersionsteps:
...
- run: tap package create package.xml -o ./MyPlugin.${{needs.GetVersion.outputs.GitVersion}}.TapPackage

About

This is a GitHub workflow which calculates the commit version based on Git history.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors