mirror of
https://github.com/diligencia/semantic-branch-version.git
synced 2024-11-23 16:23:50 +08:00
17 lines
521 B
YAML
17 lines
521 B
YAML
name: Get branch version
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
name: Gets the version of the branch
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Get version
|
|
id: getversion
|
|
uses: diligencia/semantic-git-version-action@master
|
|
- name: Echo name
|
|
run: echo "The version of the branch is ${{ steps.getversion.outputs.version }}. Major -> ${{ steps.getversion.outputs.major}} Minor -> ${{ steps.getversion.outputs.minor}} Patch -> ${{ steps.getversion.outputs.patch}}"
|