Skip to content

Commit

Permalink
Update action to use Git Version
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlydog committed Jan 28, 2024
1 parent bbc9998 commit b9475ed
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 36 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/GitVersion.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: GitVersion

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Git Version
id: version
uses: codacy/git-version@2.8.0
with:
# The name of the release branch
release-branch: main # default is master
# The name of the dev branch
dev-branch: # default is dev
# The prefix to use in the version
prefix: # optional
# The paths to be used to calculate changes (comma-separated)
log-paths: # optional, default is ./

- name: Display the version
run: |
echo Version: ${{ steps.version.outputs.version }}
- name: Display the previous version
run: |
echo Previous version: ${{ steps.version.outputs.previous-version }}
36 changes: 0 additions & 36 deletions .github/workflows/Version.yml

This file was deleted.

0 comments on commit b9475ed

Please sign in to comment.