2020-07-04 21:43:12 +08:00
|
|
|
name: Get branch version
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
|
|
|
|
jobs:
|
2020-07-05 13:54:14 +08:00
|
|
|
build:
|
2020-07-04 21:43:12 +08:00
|
|
|
runs-on: ubuntu-latest
|
2020-07-05 13:54:14 +08:00
|
|
|
|
2020-07-04 21:43:12 +08:00
|
|
|
name: Gets the version of the branch
|
|
|
|
steps:
|
2020-07-05 13:54:14 +08:00
|
|
|
- uses: actions/checkout@v2
|
2020-07-04 21:43:12 +08:00
|
|
|
- name: Get version
|
|
|
|
id: getversion
|
2020-07-04 23:33:26 +08:00
|
|
|
uses: diligencia/semantic-git-version-action@master
|
2020-07-04 21:43:12 +08:00
|
|
|
- name: Echo name
|
2020-07-04 23:25:00 +08:00
|
|
|
run: echo "The name of the branch is ${{ steps.getversion.outputs.branchname }}"
|