mirror of
https://github.com/diligencia/semantic-branch-version.git
synced 2024-11-23 16:53:51 +08:00
15 lines
354 B
YAML
15 lines
354 B
YAML
name: Get branch version
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
hello_world_job:
|
|
runs-on: ubuntu-latest
|
|
name: Gets the version of the branch
|
|
steps:
|
|
- name: Get version
|
|
id: getversion
|
|
uses: diligencia/semantic-git-version-action@master
|
|
- name: Echo name
|
|
run: echo "The name of the branch is ${{ steps.getversion.outputs.branchname }}"
|