Skip to content

Commit

Permalink
Add check for version.txt contents.
Browse files Browse the repository at this point in the history
  • Loading branch information
ni4 committed May 9, 2024
1 parent 3c42d77 commit 655243d
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,19 @@ jobs:
run: |
set -x
diff "rnp/cmake/version.cmake" "cmake-versioning/version.cmake"
version-text:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
timeout-minutes: 3
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
path: rnp
sparse-checkout: version.txt
- name: Check version.txt contents
run: |
set -eux
pwd
[[ "$(cat ./rnp/version.txt)" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]];

0 comments on commit 655243d

Please sign in to comment.