Skip to content

Commit

Permalink
Use --abbrev for git describe
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jul 17, 2024
1 parent ba1a4ee commit 05197f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check_nexus_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
git submodule update --init --recursive --jobs=4
git submodule foreach --recursive 'git fetch --tags'
cd src/pynxtools/definitions
git describe --dirty --tags --long --match "*[0-9]*" > ../nexus-ref.txt
git describe --dirty --tags --long --abbrev=8 --match "*[0-9]*" > ../nexus-ref.txt
cd ../
- name: Diff
run: |
Expand Down
1 change: 1 addition & 0 deletions src/pynxtools/_build_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ def get_vcs_version(tag_match="*[0-9]*") -> Optional[str]:
"--dirty",
"--tags",
"--long",
"--abbrev=8",
"--match",
tag_match,
],
Expand Down

0 comments on commit 05197f8

Please sign in to comment.