diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index 872984cb65..b41b6abcf3 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -12,6 +12,20 @@ on: - cron: '0 0 */6 * *' jobs: + check-version: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-tags: true + - name: Check tag with VERSION file + run: | + VERSION_TAG="$(git describe --tags --abbrev=0)" + echo "Version tag: $VERSION_TAG" + echo "Checking if VERSION file is updated.." + (( $(echo "$(echo "$VERSION" | cut -d. -f1-2) > $(cat ./core/VERSION)" |bc -l) )) + python-tests: runs-on: ubuntu-latest @@ -78,7 +92,7 @@ jobs: deploy-docker-images: runs-on: ubuntu-latest - needs: [python-tests, frontend-tests] + needs: [python-tests, frontend-tests, "check-version"] strategy: matrix: docker: [bootstrap, core] diff --git a/core/VERSION b/core/VERSION new file mode 100644 index 0000000000..a58941b07a --- /dev/null +++ b/core/VERSION @@ -0,0 +1 @@ +1.3 \ No newline at end of file