Skip to content

Commit

Permalink
Adds nexus version file
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed Jan 22, 2024
1 parent 2831461 commit 6cad123
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/check_nexus_version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: nexus version check

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: 'true'
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Generate nexus git version
run: |
cd pynxtools/definitions
git describe --dirty --tags --long --match "*[0-9]*" > ../nexus-ref.txt
cd ../
- uses: GuillaumeFalourd/diff-action@v1
with:
first_file_path: pynxtools/nexus-version.txt
second_file_path: pynxtools/nexus-ref.txt
expected_result: PASSED
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ cython_debug/
!requirements.txt
!dev-requirements.txt
!mkdocs-requirements.txt
!pynxtools/nexus-version.txt
build/
nexusparser.egg-info/PKG-INFO
.python-version
1 change: 1 addition & 0 deletions pynxtools/nexus-version.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v2022.07-927-gd2fdad4fc

0 comments on commit 6cad123

Please sign in to comment.