Trying the git version action #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
- name: Use the version | |
run: | | |
echo ${{ steps.version.outputs.version }} | |
- name: Use the previous version | |
run: | | |
echo ${{ steps.version.outputs.previous-version }} |