From 05c8b7d1031bd61eb84c5a9a9e011d64b2794370 Mon Sep 17 00:00:00 2001 From: Julian Brost Date: Tue, 8 Aug 2023 15:01:12 +0200 Subject: [PATCH] GitHub Actions: remove version check This check turned out to be not very helpful. Typically, you will first increase the version number in the source, make it a PR, review it, merge it and only aftewards, tag the version. In this PR, the check is always complaining if you did not forget to do something. --- .github/workflows/version.yml | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 .github/workflows/version.yml diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml deleted file mode 100644 index dcfc29026..000000000 --- a/.github/workflows/version.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Version -on: - push: - branches: - - main - - 'support/*' - pull_request: {} - -jobs: - version: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 0 - - uses: actions/setup-go@v4 - with: - go-version: 1.x - - name: Check version - # TODO(elippmann): Needs adjustments as soon as we release from (support) branches too. - run: | - actual="$(go run cmd/icingadb/main.go --version | head -n1 | sed 's/Icinga DB version: \(.*\)/v\1/')" - expected="$(git describe --tags $(git rev-list --tags --max-count=1))" - echo "Actual version: $actual" - echo "Expected version: $expected" - test "$actual" = "$expected" || (echo "Versions do not match"; (exit 1))