semantic-branch-version/.github/workflows/main.yml

15 lines
350 B
YAML
Raw Normal View History

2020-07-04 21:43:12 +08:00
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
2020-07-04 22:02:41 +08:00
uses: diligencia/sementantic-git-version-action@v0.1
2020-07-04 21:43:12 +08:00
- name: Echo name
run: echo "The name of the branch is ${{ steps.hello.outputs.branchname }}"