From 655243d2d9e2b5c80a9d87d50eeaf57a6774eb3b Mon Sep 17 00:00:00 2001 From: Nickolay Olshevsky Date: Tue, 7 May 2024 18:26:50 +0300 Subject: [PATCH] Add check for version.txt contents. --- .github/workflows/lint.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 7c8d4b8d28..efc1654296 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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]+$ ]]; +