Skip to content

Trying the git version action #6

Trying the git version action

Trying the git version action #6

Workflow file for this run

name: Semantic Versioning Label
on:
push:
branches:
- v2/master
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }} # checkout the correct branch name
fetch-depth: 0 # fetch the whole repo history
- name: Git Version
id: version
uses: codacy/git-version@2.7.1
- name: Use the version
run: |
echo ${{ steps.version.outputs.version }}
- name: Use the previous version
run: |
echo ${{ steps.version.outputs.previous-version }}